Android Firebase DynamiteModule:无法加载模块描述符

由于升级到最新版本的Firebase(9.0.0),通过进行用户身份验证时,我无法摆脱以下两个错误signInWithEmailAndPassword()。有人知道发生了什么吗?


    05-19 18:09:49.245 23550-23589/[PACKAGE] E/DynamiteModule: Failed to load 

    module descriptor class: Didn't find class 

    "com.google.android.gms.dynamite.descriptors.com.google.firebase.auth.ModuleDescriptor" 

on path: DexPathList[[zip file 

"/data/app/[PACKAGE]-3/base.apk"],nativeLibraryDirectories=

[/data/app/[PACKAGE]-3/lib/x86, /vendor/lib, /system/lib]]


    05-19 18:09:49.252 23550-23550/[PACKAGE] E/FirebaseApp: Firebase API 

initialization failure.java.lang.reflect.InvocationTargetException


      at java.lang.reflect.Method.invoke(Native Method)

      at com.google.firebase.FirebaseApp.zza(Unknown Source)

      at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)

      at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)

      at com.google.firebase.FirebaseApp.zzbu(Unknown Source)

      at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)

      at android.content.ContentProvider.attachInfo(ContentProvider.java:1748)

      at android.content.ContentProvider.attachInfo(ContentProvider.java:1723)

      at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)


(...)    

Caused by: 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/data/[PACKAGE]/files/instant-run/dex/slice-com.google.firebase-firebase-iid-9.0.0_95503dc60ed409569d1585da411de93e6c633bf7-classes.dex)

      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)

慕码人8056858
浏览 646回答 3
3回答

墨色风雨

您可以检查您的Google Play服务版本吗?从Firebase官方网站:先决条件运行Google Play服务9.0.0或更高版本的Android设备来自Android SDK Manager的Google Play服务SDKAndroid Studio 1.5或更高版本一个Android Studio项目及其包名称。

HUH函数

我遇到了同样的问题,并且在Firebase控制台中发现自己犯了一个错误。造成此问题的原因之一可能是您的Firebase> Auth Dashboard中的“登录方法”已被禁用。我刚刚启用它,它开始工作。

繁星点点滴滴

很遗憾,Firebase初始化错误不是那么简单,因此开发人员需要猜测出了什么问题。就我而言,我仅导入:compile 'com.google.firebase:firebase-auth:10.2.0'并忘记了导入核心:compile 'com.google.firebase:firebase-core:10.2.0'也许它将帮助某人,祝你好运!
打开App,查看更多内容
随时随地看视频慕课网APP