我收到与Firebase聊天演示相关的错误
当我从
创建FirebaseAuth实例时,会出现此错误FirebaseAuth.getInstance();
我已在 Github.com 上传了项目,因此您可以查看它。该项目在一个月之前运行完美,因为我没有打开它,但现在它正在给出这种类型的错误
项目链接:https://github.com/raghavsatyadev/FirebaseChatDemo
请不要提出以下建议:项目清理,重新安装应用,卸载应用,因为我已经已重新安装整个项目并卸载了之前的应用。
STACK TRACE:
> 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)
答案 0 :(得分:0)
尝试如下:
删除项目级和应用级的构建文件夹。 重新运行项目。
检查这是否有效..