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
The package record version 5.0.0 and above conflicts with on_audio_query: ^2.9.0.
To Reproduce
The application that I'm building is the built-in counter app. There is no import of any packages. I tried adding dependencies in the pubspec.yaml file as follows:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class androidx.lifecycle.ViewModelLazy found in modules jetified-lifecycle-viewmodel-ktx-2.3.1-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1) and lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1)
Duplicate class androidx.lifecycle.ViewTreeViewModelKt found in modules jetified-lifecycle-viewmodel-ktx-2.3.1-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1) and lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1)
Go to the documentation to learn how to <a href="d.android.com/r/tools/classpath-sync-errors">Fix dependency resolution errors</a>.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 17s
The text was updated successfully, but these errors were encountered:
androidx.lifecycle:lifecycle-viewmodel-ktx is not a dependency of this package.
You should ask to on_audio_query maintainer to upgrade the Android setup. Also, there's the same issue there.
Package version
record: ^5.0.0-5.0.5
Environment
Describe the bug
The package record version 5.0.0 and above conflicts with on_audio_query: ^2.9.0.
To Reproduce
The application that I'm building is the built-in counter app. There is no import of any packages. I tried adding dependencies in the pubspec.yaml file as follows:
However, the build failed.
Expected behavior
if I add dependencies as follows:
the build succeeds and runs smoothly.
Additional context
The text was updated successfully, but these errors were encountered: