FirebaseAnalytics & FirebaseMessaging, version mismatch on gms.measurement.base #280
Description
Xamarin.Android Version (eg: 6.0):
Xamarin.Android 9.1.7.0
Operating System & Version (eg: Mac OSX 10.11):
Windows 10 & VS2017 15.9.15
Google Play Services Version (eg: 8.4.0):
Xamarin.GooglePlayServices.Basement => 71.1620.0
Xamarin.Firebase.Messaging => 71.1740.0
Xamarin.Firebase.Analytics => 71.1630.0
Describe your Issue:
Throw following error when push notification is received :
ava.Lang.LinkageError: No static field zzaqu of type [Ljava/lang/String; in class Lcom/google/android/gms/measurement/AppMeasurement$UserProperty; or its superclasses (declaration of 'com.google.android.gms.measurement.AppMeasurement$UserProperty' appears in /data/app/com.nventive.mymd-4sXwTBz0mCrB6bFGNl5nPQ==/base.apk!classes3.dex) --- End of managed Java.Lang.LinkageError stack trace --- java.lang.NoSuchFieldError: No static field zzaqu of type [Ljava/lang/String; in class Lcom/google/android/gms/measurement/AppMeasurement$UserProperty; or its superclasses (declaration of 'com.google.android.gms.measurement.AppMeasurement$UserProperty' appears in /data/app/com.nventive.mymd-4sXwTBz0mCrB6bFGNl5nPQ==/base.apk!classes3.dex) at com.google.firebase.analytics.connector.internal.zzc.<clinit>(Unknown Source:154) at com.google.firebase.analytics.connector.internal.zzc.zzft(Unknown Source:1) at com.google.firebase.analytics.connector.AnalyticsConnectorImpl.logEvent(Unknown Source:30) at com.google.firebase.messaging.MessagingAnalytics.zza(Unknown Source:72) at com.google.firebase.messaging.MessagingAnalytics.logNotificationReceived(Unknown Source:2) at com.google.firebase.messaging.FirebaseMessagingService.zzd(Unknown Source:50) at com.google.firebase.iid.zzc.run(Unknown Source:2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at com.google.android.gms.common.util.concurrent.zza.run(Unknown Source:6) at java.lang.Thread.run(Thread.java:764)
Steps to Reproduce (with link to sample solution if possible):
Have both dependency referenced in the project, latest Xamarin.Firebase.Analytics & Xamarin.Firebase.Messaging.
Receiving a push notification will produce this error because of version mismatch on this dependency :
- Xamarin.Firebase.Analytics has a dependency on gms.measurement.base 71.1630.0
- Xamarin.Firebase.Messaging has a dependency on gms.measurement.base 71.1605.0
Maybe you have some workaround to propose about this. Or maybe you have already adressed this issue and you are working on it.