Type is defined multiple times build issue
See original GitHub issueHello,
I’ve been using the crashalytics plugin with great sucess(Thank you!). On installing the analytics plugin I am getting the following error;
Error in obj\Debug\net7.0-android33.0\lp\233\jl\classes.jar:com/google/android/gms/internal/measurement/zzef.class:
Type com.google.android.gms.internal.measurement.zzef is defined multiple times: obj\Debug\net7.0-android33.0\lp\233\jl\classes.jar:com/google/android/gms/internal/measurement/zzef.class, obj\Debug\net7.0-android33.0\lp\261\jl\classes.jar:com/google/android/gms/internal/measurement/zzef.class
Compilation failed
java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: obj\Debug\net7.0-android33.0\lp\233\jl\classes.jar
com/google/android/gms/internal/measurement/zzef.class
at com.android.tools.r8.internal.Fj.a(R8_3.3.75_b7a6ff6b13548611571508fe72282c9167faa649161ca0013edfc92e19bd7e58:98)
at com.android.tools.r8.D8.main(R8_3.3.75_b7a6ff6b13548611571508fe72282c9167faa649161ca0013edfc92e19bd7e58:4)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: obj\Debug\net7.0-android33.0\lp\233\jl\classes.jar:com/google/android/gms/internal/measurement/zzef.class
at Version.fakeStackEntry(Version_3.3.75.java:0)
<Removed>
Directory 'obj\Debug\net7.0-android33.0\lp\233' is from 'play-services-measurement-sdk-api.aar'.
I’ve found the conflict appears to be between the MauiMTAdmob(https://github.com/marcojak/MauiMTAdmob) plugin and your analytics plugin.
I’ve tried googling to no avail do you have any recommendation on how I can fix this?
I’m quite new to MAUI/Xamarin so please forgive me if it’s a really obvious solution.
Issue Analytics
- State:
- Created 3 months ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Type androidx.appcompat.resources.R$dimen is defined ...
Type androidx.appcompat.resources.R$dimen is defined multiple times: The problem is because of the Duplication of the BuildConfig which is ...
Read more >Type is defined is defined multiple times · Issue #694
Description. Trying to build an Android application with latest package versions fails with this error: MSBUILD : java.exe error JAVA0000: Type ...
Read more >Android Studio generating an error saying “is defined ...
Android Studio generating an error saying “is defined multiple times” | WebViewGold Support Center.
Read more >Android : Type BuildConfig is defined multiple times - YouTube
Android : Type BuildConfig is defined multiple times [ Beautify Your ... If there any issues, contact us on - htfyc dot hows...
Read more >D8 mergeProjectDexDebug fails on AS / AGP 4.2.0-alpha12 ...
The error message given from the build is below. I have created a minimised sample project which is able to reproduce the issue...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, for now I didn’t find an solution for this issue but I was able to reproduce it with the sample project of the plugin, so when I’ve got time I’ll take a look into it again. Until then please let us know in case you find a solution by yourself.
MAUI is a beast. Good luck out there