Skip to content Skip to sidebar Skip to footer

Android: Nosuchmethoderror: No Static Method Zzy(ljava/lang/object;

I create an app in which I can access in two waves: FirebaseUI Auth and Firebase SDK Authentication (I know that's quite wrong, I made this only for some tests). Well, from when I

Solution 1:

You must use compatible versions of the Firebase API libraries and Firebase UI. The table of compatible version is in the Firebase UI documentation. Change 9.4.0 to 10.2.0 for the com.google.firebase:firebase-* libraries.

compile'com.android.support:appcompat-v7:25.1.0'compile'com.google.firebase:firebase-auth:10.2.0'compile'com.google.firebase:firebase-database:10.2.0'compile'com.google.firebase:firebase-storage:10.2.0'compile'com.firebaseui:firebase-ui-auth:1.2.0'compile'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'

Solution 2:

Change this:

compile'com.google.firebase:firebase-auth:9.4.0'compile'com.google.firebase:firebase-database:9.4.0'compile'com.google.firebase:firebase-storage:9.4.0'

To this:

compile'com.google.firebase:firebase-auth:10.2.0'compile'com.google.firebase:firebase-database:10.2.0'compile'com.google.firebase:firebase-storage:10.2.0'

You need to upgrade Firebase, you are using an old version. You will see Firebase has version 10.2.1 available, but according to FirebaseUi it currently supports Firebase version up to 10.2.0, so use 10.2.0.

Solution 3:

  1. As it's mentioned here Update all the versions to the latest ones and all the versions should be the same.
  2. Clean and Rebuild your Project

Run the project.

Solution 4:

Check comparability version of firebase, recommanded to use latest

In my case I have forgot to add below dependency

compile'com.google.firebase:firebase-core:9.4.0'

My all dependency as below

compile'com.google.firebase:firebase-core:9.4.0'compile'com.google.firebase:firebase-messaging:9.4.0'compile'com.firebase:firebase-client-android:2.5.1'

all use to send push notification to device

Post a Comment for "Android: Nosuchmethoderror: No Static Method Zzy(ljava/lang/object;"