Android Question Firebase Messaging

Philip Prins

Active Member
Licensed User
Longtime User
When i start the Firebase Messaging service from the tutorial i get this error
B4X:
firebasemessaging_service_create (java line: 212)
java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'com.google.firebase.iid.zzg' appears in /data/app/sondo.app.android-1/base.apk)

What can be the cause?
 

Philip Prins

Active Member
Licensed User
Longtime User
This also added as error
B4X:
5
** Service (starter) Start **
MQTT Connect
wshConnect
** Service (firebasemessaging) Create **
firebasemessaging_service_create (java line: 212)
java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'com.google.firebase.iid.zzg' appears in /data/app/sondo.app.android-2/base.apk)
    at com.google.firebase.iid.zzg.zzeC(Unknown Source)
    at com.google.firebase.iid.zzg.<init>(Unknown Source)
    at com.google.firebase.iid.zzg.<init>(Unknown Source)
    at com.google.firebase.iid.zzd.zzb(Unknown Source)
    at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)
    at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)
    at com.google.firebase.messaging.FirebaseMessaging.getInstance(Unknown Source)
    at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.Initialize(FirebaseNotificationsService.java:71)
    at sondo.app.android.firebasemessaging._service_create(firebasemessaging.java:212)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
    at sondo.app.android.firebasemessaging$1.run(firebasemessaging.java:75)
    at android.os.Handler.handleCallback(Handler.java:743)
 
Upvote 0

Philip Prins

Active Member
Licensed User
Longtime User
Hello Erel, I removed the support Repository and the google repository installed it again with no succes.
I installed B4A again but the problem stays,

wshConnect
** Service (firebasemessaging) Create **
firebasemessaging_service_create (java line: 212)
java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'com.google.firebase.iid.zzg' appears in /data/app/sondo.app.android-2/base.apk)
at com.google.firebase.iid.zzg.zzeC(Unknown Source)
at com.google.firebase.iid.zzg.<init>(Unknown Source)
at com.google.firebase.iid.zzg.<init>(Unknown Source)
at com.google.firebase.iid.zzd.zzb(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)
at com.google.firebase.messaging.FirebaseMessaging.getInstance(Unknown Source)
at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.Initialize(FirebaseNotificationsService.java:71)
at sondo.app.android.firebasemessaging._service_create(firebasemessaging.java:212)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
at sondo.app.android.firebasemessaging$1.run(firebasemessaging.java:75)
at android.os.Handler.handleCallback(Handler.java:743)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:150)
at android.app.ActivityThread.main(ActivityThread.java:5546)
 
Upvote 0
Top