You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce the issue:
Upgrade the flutter to latest version, and upgrade the datadog dependencies to the latest version, and try to run the app in the android emulator
Describe what you expected:
The build is failing with the following error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDevDebugDuplicateClasses'.
> 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-runtime (androidx.work:work-runtime:2.8.1) and 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-runtime (androidx.work:work-runtime:2.8.1) and work-runtime-ktx-2.7.1-runtime (androidx.work:work-runtime-ktx:2.7.1)
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
BUILD FAILED in 32s
Exception: Gradle task assembleDevDebug failed with exit code 1
This is because we updated our Kotlin runtime in version 2.0. Can you check your android/build.gradle file and android/app/build.gradle file to see if you're adding a dependency on androidx.work:work-runtime-ktx? If so, does updating it to 2.8.0 or above fix your issue?
You may also want to check for the Kotlin gradle plugin (org.jetbrains.kotlin:kotlin-gradle-plugin) which we recommend be at 1.8.22 or above.
If these fix your issues, I'll make sure to add this to our MIGRATING and troubleshooting documentation.
Hi Jeff,
we don't have any dependency on androidx.work:work-runtime-ktx
also org.jetbrains.kotlin:kotlin-gradle-plugin we are using version 1.9.0 which is aligns with recommended version
Thanks for taking the time for reporting an issue!
Describe what happened
I had upgraded my datadog dependencies the latest one, and my flutter app is not able run on android emulator
Steps to reproduce the issue:
Upgrade the flutter to latest version, and upgrade the datadog dependencies to the latest version, and try to run the app in the android emulator
Describe what you expected:
The build is failing with the following error
Additional context
The text was updated successfully, but these errors were encountered: