Firebase Messaging Nosuchmethoderror.Zzur Exception

Firebase messaging NoSuchMethodError.zzUr exception

Try running all services with the same version. In this case, change:

compile 'com.google.firebase:firebase-messaging:9.0.2'

to

compile 'com.google.firebase:firebase-messaging:9.2.0'

and check if the same issue happens.

Firebase Android: App crash when receiving Notification after adding Invites

Adding as answer :
From one of my running project,

 // Firebase dependencies 
implementation 'com.google.firebase:firebase-invites:16.0.1'
implementation "com.google.android.gms:play-services-base:15.0.1"
implementation "com.google.android.gms:play-services-auth:16.0.0"
implementation "com.google.firebase:firebase-core:16.0.1"
implementation "com.google.firebase:firebase-auth:16.0.3"
implementation "com.google.firebase:firebase-firestore:17.1.0"
implementation "com.google.firebase:firebase-messaging:17.3.0"

Firebase Messages don't work

I have found the solution, I have written this in my gradle :

compile 'com.google.firebase:firebase-messaging:9.0.2'

instead of this:

compile 'com.google.firebase:firebase-messaging:9.2.0'

Xamarin Forms Java.Lang.NoSuchMethodError

I installed the latest Xamarin.Google.Dagger NuGet package into my Xamarin.Android instance and that seems to have fixed it for me. Hope that works for you.

Fatal exception java.lang.NoSuchMethodError: No static method isDeviceProtectedStorage

Using the same version for Firebase or Google Play Service (in your case firebase-core and firebase-messaging) should solve the issue. Avoid using libraries with different versions.

Moreover, isDeviceProtectedStorage was added on version 24.1.0 check if you are using this version (or higher).

Problems updating PlayServices/Firebase from 10.0.1 to 10.2.0

There are 2 important things about Google Play Services and Firebase usage as stated in official documentation.

You need to declare the latest classpath of Google Play Services in your root-level gradle, example quoted from given documentation:

buildscript {
// ...
dependencies {
// ...
classpath 'com.google.gms:google-services:3.0.0'
}
}

Also, as comments suggest in your project every Google Play Services and Firebase package has to have same version, to ensure this you can follow the method given below (It'll be easier like this, you only need to update version number on definitions)

def googlePlayLibVersion = "10.2.0"
def googleFirebaseLibVersion = "10.2.0"

ext {
annotations = "com.android.support:support-annotations:${supportLibVersion}"
firebaseAnalytics = "com.google.firebase:firebase-core:${googleFirebaseLibVersion}"
firebaseCrash = "com.google.firebase:firebase-crash:${googleFirebaseLibVersion}"
googlePlayAds = "com.google.android.gms:play-services-ads:${googlePlayLibVersion}"
googlePlayGcm = "com.google.android.gms:play-services-gcm:${googlePlayLibVersion}"
googlePlayAnalytics = "com.google.android.gms:play-services-analytics:${googlePlayLibVersion}"
}

Firebase crash while using GCM

I had the same issue and it was because I was using a different version for messaging, so try to use the same version on all firebase related dependencies.



Related Topics



Leave a reply



Submit