question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type is defined multiple times build issue

See original GitHub issue

Hello,

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:open
  • Created 3 months ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
TobiasBuchholzcommented, Jun 14, 2023

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.

0reactions
jeff-eats-pubsubscommented, Jul 18, 2023

MAUI is a beast. Good luck out there

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found