Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate class androidx.lifecycle.ViewModelLazy #18

Open
sidhu-patil opened this issue May 13, 2023 · 5 comments
Open

Duplicate class androidx.lifecycle.ViewModelLazy #18

sidhu-patil opened this issue May 13, 2023 · 5 comments

Comments

@sidhu-patil
Copy link

sidhu-patil commented May 13, 2023

Launching lib/main.dart on POCO X2 in debug mode...
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

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.0-rc01-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-rc01) 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.0-rc01-runtime (androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-rc01) and lifecycle-viewmodel-2.5.1-runtime (androidx.lifecycle:lifecycle-viewmodel:2.5.1)
Go to the documentation to learn how to Fix dependency resolution errors.

  • 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.

BUILD FAILED in 4m 10s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

@sidhu-patil
Copy link
Author

This problem occurs with firebase_core package with any latest version ...

Please checkout and fixed this issue as soon as possible

@sidhu-patil
Copy link
Author

We are unable to add your package and firebase_core package together in any project ( application package)

@harrowmykel
Copy link
Owner

try using the new version

@sidhu-patil
Copy link
Author

Same problem occurs in your new SDK also 🙄🙄

@harrowmykel
Copy link
Owner

New version is now available. Please use v1. 0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants