NoSuchMethodError with FirebaseMessaging

0

I'm getting the following error when running my app:

E/AndroidRuntime: FATAL EXCEPTION: main
                                                                              Process: br.com.igoroliv.youtubecanal, PID: 29233
                                                                              java.lang.NoSuchMethodError: No virtual method zzjt(Ljava/lang/String;)V in class Lcom/google/firebase/iid/FirebaseInstanceId; or its super classes (declaration of 'com.google.firebase.iid.FirebaseInstanceId' appears in /data/app/br.com.igoroliv.youtubecanal-1/base.apk)
                                                                                  at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
                                                                                  at br.com.igoroliv.youtubecanal.MainActivity.onCreate(MainActivity.java:61)

The error line is this:

FirebaseMessaging.getInstance().subscribeToTopic("todos");
FirebaseMessaging.getInstance().subscribeToTopic("live");
FirebaseMessaging.getInstance().subscribeToTopic("comunicados");
FirebaseMessaging.getInstance().subscribeToTopic("videos");

It was working until yesterday, I added some things in the code and now you are giving this error when you open the app, I do not understand why, I did some research and most of the answers were to put the same version for all the compile in the gradle , but mine is already this way.

My gradle:

compile 'com.google.firebase:firebase-storage:10.2.1'
compile 'com.google.firebase:firebase-core:10.2.1'
compile 'com.google.firebase:firebase-messaging:10.2.1'
    
asked by anonymous 05.08.2017 / 21:20

0 answers