airbnb / mavericks

Mavericks: Android on Autopilot
https://airbnb.io/mavericks/
Apache License 2.0
5.83k stars 500 forks source link

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

Open chougule opened 1 year ago

chougule commented 1 year ago

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 commented 1 year ago

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.