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

Type com.airbnb.mvrx.AndroidStrictModeExtensionsKt is defined multiple times #675

Open
chougule opened this issue Mar 12, 2023 · 1 comment

Comments

@chougule
Copy link

while creating release apk in anroid studio getting below error

Type com.airbnb.mvrx.AndroidStrictModeExtensionsKt is defined multiple times: C:\Users\Deepak.gradle\caches\transforms-3\6b1e4fee97528118597e7b97a290561c\transformed\mavericks-2.7.0-runtime.jar:com/airbnb/mvrx/AndroidStrictModeExtensionsKt.class, D:\Work\pay-ok\mvrx\build\intermediates\runtime_library_classes_jar\release\classes.jar:com/airbnb/mvrx/AndroidStrictModeExtensionsKt.class

and one more error

Execution failed for task ':app:minifyReleaseWithR8'.

com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: C:\Users\Deepak.gradle\caches\transforms-3\6b1e4fee97528118597e7b97a290561c\transformed\mavericks-2.7.0-runtime.jar:com/airbnb/mvrx/AndroidStrictModeExtensionsKt.class

@rossbacher
Copy link
Collaborator

I’m awk but my guess is that your app (probably through dependencies) is depending on two different versions of Mavericks. And the class is not in the same artifact in both of those versions.
Check which versions of Mavericks you are depending on and ensure that all artifacts get “pulled up” to the same version.

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