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 'com.google.firebase.messaging.FirebaseMessaging' appears in /data/app/com.visualnet.geracao-2/base.apk)

I'm using the latest library, as appear:

upload_2019-1-23_7-51-44.png


upload_2019-1-23_7-52-37.png

upload_2019-1-23_7-53-45.png


and the latest SDK oriented

Instructions provided by @Erel

You are not using the latest version of FirebaseNotifications.

1. Carefully follow these instructions: https://www.b4x.com/android/forum/threads/firebase-notifications-firebase-auth-issues.94200/
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

http://vnsoft.es/download/b4a/sdk/android-sdk.zip


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


Step 3:
Configure SDK Manger as image below

sdkmanager.png


Just that!

Now Firebase-Notifications and everything is working properly!

Thanks @Erel
 
Upvote 0
Top