【发布时间】:2017-06-09 08:00:58
【问题描述】:
我收到与 Firebase 聊天演示相关的错误,
当我从
创建 FirebaseAuth 实例时出现此错误FirebaseAuth.getInstance();
我已经在 Github.com 上上传了项目,您可以查看它。该项目在一个月前运行完美,因为我还没有打开它,但现在它给出了这种类型的错误
项目链接:https://github.com/raghavsatyadev/FirebaseChatDemo
请不要给出以下建议:清理项目、重新安装应用程序、卸载应用程序,因为我已经重新克隆整个项目并卸载了以前的应用程序。
堆栈跟踪:
> FATAL EXCEPTION: pool-4-thread-1
Process: com.firebasechatdemo, PID: 31569
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/newrelic/agent/android/instrumentation/JSONObjectInstrumentation;
at com.google.firebase.iid.zzs.zzc(Unknown Source)
at com.google.firebase.iid.zzr.zza(Unknown Source)
at com.google.firebase.iid.zzj.getToken(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.getToken(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.zzKg(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceIdService.zza(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceIdService.handleIntent(Unknown Source)
at com.google.firebase.iid.zzc.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.newrelic.agent.android.instrumentation.JSONObjectInstrumentation" on path: DexPathList[[zip file "/data/app/com.firebasechatdemo-1/base.apk"],nativeLibraryDirectories=[/data/app/com.firebasechatdemo-1/lib/arm, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at com.google.firebase.iid.zzs.zzc(Unknown Source)
at com.google.firebase.iid.zzr.zza(Unknown Source)
at com.google.firebase.iid.zzj.getToken(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.getToken(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceId.zzKg(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceIdService.zza(Unknown Source)
at com.google.firebase.iid.FirebaseInstanceIdService.handleIntent(Unknown Source)
at com.google.firebase.iid.zzc.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
【问题讨论】:
-
我认为我在 Android SDK 中的 google-play-services 库已损坏。我重新下载了,问题解决了
标签: android firebase firebase-realtime-database firebase-authentication newrelic