如何使用Firebase消息解决此问题?

时间:2019-06-15 09:16:53

标签: java android

当我尝试发送消息时,此弹出窗口。

我已经尝试过改变依存关系等

此错误发生在android 9上。

E/FirebaseApp: Firebase API initialization failure.
    java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invoke(Native Method)
        at com.google.firebase.FirebaseApp.zza(com.google.firebase:firebase-common@@16.0.2:797)
        at com.google.firebase.FirebaseApp.zze(com.google.firebase:firebase-common@@16.0.2:763)
        at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.2:359)
        at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.2:324)
        at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@16.0.2:310)
        at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@16.0.2:53)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:2082)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:2056)
        at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@16.0.2:47)
        at android.app.ActivityThread.installProvider(ActivityThread.java:6946)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6491)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6408)
        at android.app.ActivityThread.access$1300(ActivityThread.java:220)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1852)
        at android.os.Handler.dispatchMessage(Handler.java:107)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7319)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:934)
     Caused by: java.lang.NoSuchMethodError: No virtual method zzbsv()Ljava/lang/String; in class Lcom/google/firebase/FirebaseApp; or its super classes (declaration of 'com.google.firebase.FirebaseApp' appears in /data/app/com.bla.bla-4wkpWtlYxBh4J5jquPyhaA==/split_lib_dependencies_apk.apk!classes2.dex)
        at com.google.firebase.auth.FirebaseAuth.zzb(Unknown Source:3)

0 个答案:

没有答案