xamarin / GooglePlayServicesComponents

Other
315 stars 148 forks source link

Xamarin.Firebase.Perf build error #898

Open PavloLukianets opened 1 month ago

PavloLukianets commented 1 month ago

Xamarin.Android Version (eg: 6.0):

Latest net8.0 android

Operating System & Version (eg: Mac OSX 10.11):

MacOS Sonoma Version 14.5 (23F79)

Google Play Services Version

Latest nugets available

Describe your Issue

Installing Xamarin.Firebase.Perf in a blank template Android app produces build error. Tips and workarounds in https://github.com/xamarin/AndroidX/issues/764 don't help

Repro

AndroidApp1.zip

Include any relevant Exception Stack traces, build logs, adb logs:

0>: Error JAVA0000 java: Error in obj/Debug/net8.0-android/lp/173/jl/classes.jar:com/google/protobuf/DescriptorProtos$1.class:
Type com.google.protobuf.DescriptorProtos$1 is defined multiple times: obj/Debug/net8.0-android/lp/173/jl/classes.jar:com/google/protobuf/DescriptorProtos$1.class, obj/Debug/net8.0-android/lp/162/jl/libs/8E428AF64A795598.jar:com/google/protobuf/DescriptorProtos$1.class
...
Directory 'obj/Debug/net8.0-android/lp/151' is from 'protolite-well-known-types.aar'.
PavloLukianets commented 1 month ago

I see that a fix was already implemented over here, however looks like the issue is still not resolved : https://github.com/xamarin/GooglePlayServicesComponents/commit/d4fd4c08a5abf6459b4171cd5be5c4ff9cb1a0db

Digifais commented 1 month ago

I can confirm this is an issue with Xamarin.Firebase.Perf 121.0.1.1, latest working version on my end seems to be 121.0.0.

PavloLukianets commented 1 month ago

@Digifais does 121.0.0 work fine with all other latest firebase/androidx packages?

Digifais commented 1 month ago

@PavloLukianets Yes, it does for me.

PavloLukianets commented 4 weeks ago

Nope, for my combination of libs doesn't build. So, waiting for fix from the team

PavloLukianets commented 3 weeks ago

https://github.com/firebase/firebase-android-sdk/pull/5999

Digifais commented 3 weeks ago

firebase/firebase-android-sdk#5999

@moljac

moljac commented 3 weeks ago

@Digifais

Thanks for the info. We added fix on our side, but I expect more to come. Google's ecosystem is one huge construction site (kotlin multiplatform).

firebase/firebase-android-sdk#5999

@moljac