dd-sdk-reactnative icon indicating copy to clipboard operation
dd-sdk-reactnative copied to clipboard

Error after add @datadog/mobile-react-native

Open AlexLFundbox opened this issue 1 year ago • 3 comments

Describe the issue

I'm trying to add "@datadog/mobile-react-native": "^2.4.3" and "@datadog/mobile-react-navigation": "^2.4.3" but getting error on android build `* What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable Duplicate class androidx.work.OneTimeWorkRequestKt found in modules work-runtime-2.8.1.aar -> work-runtime-2.8.1-runtime (androidx.work:work-runtime:2.8.1) and work-runtime-ktx-2.7.1.aar -> work-runtime-ktx-2.7.1-runtime (androidx.work:work-runtime-ktx:2.7.1) Duplicate class androidx.work.PeriodicWorkRequestKt found in modules work-runtime-2.8.1.aar -> work-runtime-2.8.1-runtime (androidx.work:work-runtime:2.8.1) and work-runtime-ktx-2.7.1.aar -> work-runtime-ktx-2.7.1-runtime (androidx.work:work-runtime-ktx:2.7.1)`

 Attaching my dependency tree

output.txt

According to dependency tree, I have 2 libraries (react-native-plaid-link-sdk and react-native-idfa) that use different version of work-runtime I'm also using the last versions of those libraries androidx.work:work-runtime:2.7.1 -> 2.8.1

Is there any idea how can i resolve this issue?

Reproduction steps

I believe that reproduction steps are: to install react-native-plaid-link-sdk and react-native-idfa And then install @datadog/mobile-react-native and @datadog/mobile-react-navigation and try to build android

SDK logs

No response

Device Information

No response

SDK version

2.4.3

Integration Methods

Yarn

React Native Version

0.74.3

Package.json Contents

No response

iOS Setup

No response

Android Setup

No response

Other relevant information

No response

AlexLFundbox avatar Aug 01 '24 10:08 AlexLFundbox