【问题标题】:Error: New Relic Instrumentation Error in Firebase Auth Android错误:Firebase Auth Android 中的新 Relic Instrumentation 错误
【发布时间】: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


【解决方案1】:

尝试如下:

删除项目级和应用级的构建文件夹。 重新运行项目。

检查这是否有效..

【讨论】:

  • 它对我的 Linux 系统没有影响,但是我在 Windows PC 上克隆了 Repo 并且项目运行成功,这可能是因为我在将近 8 小时后克隆了一些 firebase 维护。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-04-14
  • 2022-07-27
  • 2021-04-22
  • 2022-11-24
  • 2016-09-20
  • 2021-12-30
  • 1970-01-01
相关资源
最近更新 更多