firebasestorage.getInstance().getReference()崩溃应用



FirebaseStorage.getInstance().getReference()崩溃了应用。我已经检查了另一个类似的帖子,但这对我的Google-services.json文件无济于事。

这是日志:

  A/FirebaseApp: Firebase API initialization failure.
  java.lang.reflect.InvocationTargetException
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:372)
  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.initializeApp(Unknown Source)
  at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)
  at android.content.ContentProvider.attachInfo(ContentProvider.java:1737)
  at android.content.ContentProvider.attachInfo(ContentProvider.java:1712)
  at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)
  at android.app.ActivityThread.installProvider(ActivityThread.java:6487)
  at android.app.ActivityThread.installContentProviders(ActivityThread.java:6082)
  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6022)
  at android.app.ActivityThread.access$1700(ActivityThread.java:211)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1766)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:145)
  at android.app.ActivityThread.main(ActivityThread.java:6946)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:372)
  at com.android.internal .os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
  at com.android.internal .os.ZygoteInit.main(ZygoteInit.java:1199)
  Caused by: java.lang.NoSuchMethodError: No static method getNoBackupFilesDir(Landroid/content/Context;)Ljava/io/File; in class Lcom/google/android/gms/common/util/zzx; or its super classes (declaration of 'com.google.android.gms.common.util.zzx' appears in /data /data /com.example.bhrigu.simpleblog/files/instant-run/dex/slice-com.google.android.gms-play-services-basement-10.0.0_c06534ef2c8c0d287af412696f22ee66b12bcbfa-classes.dex)
  at com.google.firebase.iid.zzg.zzkg(Unknown Source)

确实与Google-play版本发生了冲突。最初,当我遇到10.0.0的错误时,我曾将9.2.0版用于Firebase库。但是,修复Google播放版本似乎也照顾了这些版本。而且我能够使用所有更新的库。

相关内容

  • 没有找到相关文章

最新更新