Android Question ERROR Firebase: java.lang.NoSuchMethodError: No virtual method subscribeToTopic(Ljava/lang/String;)

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Hello everyone,

I still have this problem even follow the instructions below.

java.lang.NoSuchMethodError: No virtual method subscribeToTopic(Ljava/lang/String;)Lcom/google/android/gms/tasks/Task; in class Lcom/google/firebase/messaging/FirebaseMessaging; or its super classes (declaration of '' appears in /data/app/com.visualnet.geracao-2/base.apk)

I'm using the latest library, as appear:




and the latest SDK oriented

Instructions provided by @Erel

You are not using the latest version of FirebaseNotifications.

1. Carefully follow these instructions:
2. Make sure to copy the updated libraries to the internal libraries folder.

Any ideas? I'm have one stopped project because I cant solve this problem.....

Thanks in advance

Alberto Iglesias

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
Finally works!

After reinstall everything in one machine, I prepared a zip file with all android-sdk you need for fix this:

Step 1:
Just unzip this file below on this folder c:\android\android-sdk

Step 2:
Configure IDE to get the android.jar as image below

Step 3:
Configure SDK Manger as image below


Just that!

Now Firebase-Notifications and everything is working properly!

Thanks @Erel
Upvote 0