question

Bhuwan-FullStackDeveloper avatar image
0 Votes"
Bhuwan-FullStackDeveloper asked YonglunLiu-MSFT commented

Facing Build issue

Severity Code Description Project File Line Suppression State
Error Error in obj\Debug\120\lp\111\jl\bin\classes.jar:com/google/android/gms/measurement/AppMeasurement$ConditionalUserProperty.class:
Type com.google.android.gms.measurement.AppMeasurement$ConditionalUserProperty is defined multiple times: obj\Debug\120\lp\111\jl\bin\classes.jar:com/google/android/gms/measurement/AppMeasurement$ConditionalUserProperty.class, obj\Debug\120\lp\81\jl\classes.jar:com/google/android/gms/measurement/AppMeasurement$ConditionalUserProperty.class
Compilation failed
java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: obj\Debug\120\lp\111\jl\bin\classes.jar
com/google/android/gms/measurement/AppMeasurement$ConditionalUserProperty.class
at com.android.tools.r8.internal.Bj.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:98)
at com.android.tools.r8.R8.main(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:4)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: obj\Debug\120\lp\111\jl\bin\classes.jar:com/google/android/gms/measurement/AppMeasurement$ConditionalUserProperty.class
at Version.fakeStackEntry(Version_3.3.28.java:0)
at com.android.tools.r8.internal.Bj.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:75)
at com.android.tools.r8.internal.Bj.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:28)
at com.android.tools.r8.internal.Bj.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:27)
at com.android.tools.r8.R8.b(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:1133)
at com.android.tools.r8.R8.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:2212)
at com.android.tools.r8.internal.Bj.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:85)
... 1 more
Caused by: com.android.tools.r8.internal.f: Type com.google.android.gms.measurement.AppMeasurement$ConditionalUserProperty is defined multiple times: obj\Debug\120\lp\111\jl\bin\classes.jar:com/google/android/gms/measurement/AppMeasurement$ConditionalUserProperty.class, obj\Debug\120\lp\81\jl\classes.jar:com/google/android/gms/measurement/AppMeasurement$ConditionalUserProperty.class
at com.android.tools.r8.internal.DT.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:14)
at com.android.tools.r8.internal.DT.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:22)
at com.android.tools.r8.internal.CN.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:33)
at com.android.tools.r8.internal.CN.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:10)
at java.base/java.util.concurrent.ConcurrentHashMap.merge(ConcurrentHashMap.java:2048)
at com.android.tools.r8.internal.CN.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:6)
at com.android.tools.r8.graph.B2$a.e(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:4)
at com.android.tools.r8.dex.b.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:105)
at com.android.tools.r8.dex.b.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:28)
at com.android.tools.r8.R8.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:902)
at com.android.tools.r8.R8.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:2211)
at com.android.tools.r8.internal.Bj.a(R8_3.3.28_2aaf796388b4e9f6bed752d926eca110512a53a3f09a8d755196089c1cfdf799:24)
... 4 more
Directory 'obj\Debug\120\lp\111' is from 'Xamarin.GooglePlayServices.Measurement.Impl.dll'. ADWDiabetes.Android

dotnet-xamarin
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

For further investigation, could you please provide more detailed information about steps of reproduction?

Please refer to How to write a quality question.

0 Votes 0 ·

Hi @YonglunLiu-MSFT

i am getting build issue after added firebase nougat packages. please refer below link for more details.

https://learn.microsoft.com/en-us/answers/questions/1024537/firebase-google-analytics-in-xamarin-forms.html

0 Votes 0 ·

1 Answer

YonglunLiu-MSFT avatar image
0 Votes"
YonglunLiu-MSFT answered YonglunLiu-MSFT commented

Hello,

This should be due to a nuget package conflict between Firebase and Google Analytics.

This issue D8 fails during Xamarin Android build with latest Xamarin.GooglePlayServices libraries #5237 could be helpful for you.

Best Regards,

Alec Liu.



If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @YonglunLiu-MSFT - fixed after review above Url threat.
Thanks

0 Votes 0 ·
YonglunLiu-MSFT avatar image YonglunLiu-MSFT Bhuwan-FullStackDeveloper ·

I've converted my comment to answer, could you please check it?

0 Votes 0 ·