Xamarin.Firebase.Perf build error
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
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'.
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
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.
@Digifais does 121.0.0 work fine with all other latest firebase/androidx packages?
@PavloLukianets Yes, it does for me.
Nope, for my combination of libs doesn't build. So, waiting for fix from the team
https://github.com/firebase/firebase-android-sdk/pull/5999
@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).
@moljac
closing this issue