最近搜索


没有最近搜索

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



已于 2021年11月11日 发布

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?!


0

6

6 条评论

image avatar

Eric Nelson

Zendesk Developer Advocacy

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! 

0


Hi Hanae, 

try adding FlexBox 2.0.1 explicitly in your build.gradle 

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

-1


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.

0


image avatar

Mick O'Donnell

Zendesk Product Manager

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.

1


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 

1


image avatar

Mick O'Donnell

Zendesk Product Manager

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.

0


请先登录再写评论。

找不到所需的内容?

新建帖子