Could not find com.google.android:flexbox:2.0.1 required by project :app > com.zendesk:messaging:5.2.1 | Community
Skip to main content

Could not find com.google.android:flexbox:2.0.1 required by project :app > com.zendesk:messaging:5.2.1

  • November 11, 2021
  • 6 replies
  • 0 views

Hello,

I've just adding the chat sdk to my react native project and I got this

* What went wrong:

Could not determine the dependencies of task ':app:preDebugBuild'.

> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.

   > Could not find com.google.android:flexbox:2.0.1.

     Searched in the following locations:

       - https://repo.maven.apache.org/maven2/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom

       - file:/Users/izi/.m2/repository/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom

       - file:/Users/izi/Desktop/app/node_modules/react-native/android/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom

       - file:/Users/izi/Desktop/app/node_modules/jsc-android/dist/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom

       - https://dl.google.com/dl/android/maven2/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom

       - https://maven.google.com/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom

       - https://www.jitpack.io/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom

       - https://zendesk.jfrog.io/zendesk/repo/com/google/android/flexbox/2.0.1/flexbox-2.0.1.pom

     Required by:

         project :app > com.zendesk:messaging:5.2.1

my build.gradle(app module)

implementation group: 'com.zendesk', name: 'chat', version: '3.3.1'

implementation group: 'com.zendesk', name: 'messaging', version: '5.2.1'

 

any idea please?!

6 replies

Eric27
  • November 15, 2021
Hey Hanae,

Unfortunately, Zendesk doesn't support React Native for our SDKs. Though I'm going to leave this post open to see if someone from the community can assist! 

Ivan26
  • November 16, 2021

Hi Hanae, 

try adding FlexBox 2.0.1 explicitly in your build.gradle 

implementation 'com.google.android:flexbox:2.0.1'

Akash18
  • November 19, 2021

Hi Eric,
I am facing same issue in Kotlin. Does Zendesk not support Kotlin also? I already have flexbox dependency in my code but still getting above issue.


Mick11
  • November 22, 2021

Hi Akash,

We do support Kotlin for our SDKs. We'll current working on a new release of our Android SDKs to resolve this issue. In the meantime, you should be able to work-around this issue by upgrading to Flexbox 3.0.0.

We'll update the release notes as soon as the release is available.


Akash18
  • November 22, 2021

Hi Mick, thank you for responding.
I was able to resolve the issue - using exclude flexbox line in the dependency. As you can see below

implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation (group: 'com.zendesk', name: 'messaging', version: '5.2.2') {
exclude group: "com.google.android", module: "flexbox"
}
implementation (group: 'com.zendesk', name: 'chat', version: '3.3.2') {
exclude group: "com.google.android", module: "flexbox"
}

this worked for me 


Mick11
  • December 8, 2021

Awesome Akash, glad to see it's solved! FYI, we're updating the SDK to use Flexbox 3.0.0 out of the box. This updating will be available shortly.