Android Question java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encod

AHilberink

Active Member
Licensed User
Longtime User
Hi,

I am trying to activate Firebase Crashlytics. I got this error:
java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in base.apk)

My manifestcode:
B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile(Macro, FirebaseAnalytics.Crashlytics)

My Activity Attributes of my main:
B4X:
#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: False
    #AdditionalJar: com.android.support:support-v4
    #AdditionalJar: com.google.android.gms:play-services-location
    #AdditionalJar: com.google.android.gms:play-services-base
    #AdditionalJar: com.google.firebase:firebase-crashlytics
#End Region

And my SDK include:
SDK.JPG


I do not know where to look for a solution. Without Crashlytics, my application works fine.

Kind regards,
André
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
No need to touch the sdk manager.
You do need to use B4A 11 and download the updated SDK.
 
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
No need to touch the sdk manager.
You do need to use B4A 11 and download the updated SDK.
I already did. Latest B4A and latest SDK form b4x site.

Do not know what is going wrong.
 
Upvote 0
Top