Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了android – NoClassDefFoundError:com.google.firebase.perf.internal.RemoteConfigManager大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

我开始在Fabric上遇到以下问题:

Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()
       at android.os.AsyncTask$3.done(AsyncTask.java:309)
       at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
       at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
       at java.util.concurrent.FutureTask.run(FutureTask.java:242)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
       at java.lang.Thread.run(Thread.java:818)


Caused by java.lang.NoClassDefFoundError: com.google.firebase.perf.internal.RemoteConfigManager
       at com.google.firebase.perf.internal.FeatureControl.<>Nown Source:2)
       at com.google.firebase.perf.internal.FeatureControl.zzar(UnkNown Source:10)
       at com.google.firebase.perf.internal.GaugeManager.<>Nown Source:4)
       at com.google.firebase.perf.internal.GaugeManager.zzbf(UnkNown Source:22)
       at com.google.android.gms.internal.firebase-perf.zzat.<>Nown Source:2)
       at com.google.android.gms.internal.firebase-perf.zzat.zza(UnkNown Source:1)
       at com.google.firebase.perf.network.FirebasePerfUrlConnection.instrument(UnkNown Source:9)
       at io.branch.referral.network.BranchRemoteInterfaceUrlConnection.doRestfulPost(BranchRemoteInterfaceUrlConnection.java:127)
       at io.branch.referral.network.BranchRemoteInterfaceUrlConnection.doRestfulPost(BranchRemoteInterfaceUrlConnection.java:45)
       at io.branch.referral.network.BranchRemoteInterface.make_restful_post(BranchRemoteInterface.java:136)
       at io.branch.referral.Branch$BranchPostTask.doInBackground(Branch.java:2860)
       at io.branch.referral.Branch$BranchPostTask.doInBackground(Branch.java:2835)
       at android.os.AsyncTask$2.call(AsyncTask.java:295)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
       at java.lang.Thread.run(Thread.java:818)

使用以下配置:

在根build.gradle上

classpath 'com.google.gms:google-services:4.1.0'
classpath 'com.google.firebase:firebase-plugins:1.1.5'

并在应用程序build.gradle中

apply plugin: 'com.google.firebase.firebase-perf'

...

api 'com.android.support:multidex:1.0.3'

implementation "com.google.firebase:firebase-core:16.0.6"
implementation "com.google.firebase:firebase-inappmessaging-display:17.0.4"
implementation "com.google.firebase:firebase-perf:16.2.2"
implementation "com.google.android.gms:play-services-gcm:16.0.0"
implementation "com.google.android.gms:play-services-analytics:16.0.6"

...

apply plugin: 'com.google.gms.google-services'

有人知道工作配置或修复方法吗?
这种崩溃率很高.

android  –  NoClassDefFoundError:com.google.firebase.perf.internal.RemoteConfigManager

最佳答案
看起来这是谷歌的一个已知问题,他们正在努力修复它:

请查看此链接获取更多详细信息:https://groups.google.com/forum/#!topic/firebase-talk/7Ccu-Zh8pdg

我的解决方法是降级库版本,低于适合我的配置:

'com.android.support:multidex:1.0.3'
"com.google.firebase:firebase-core:15.0.2"
"com.google.firebase:firebase-perf:15.0.0"
"com.google.android.gms:play-services-gcm:15.0.1"

我希望有所帮助!

大佬总结

以上是大佬教程为你收集整理的android – NoClassDefFoundError:com.google.firebase.perf.internal.RemoteConfigManager全部内容,希望文章能够帮你解决android – NoClassDefFoundError:com.google.firebase.perf.internal.RemoteConfigManager所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: