【发布时间】:2019-09-08 21:56:20
【问题描述】:
我最近在 Google Play 上更新了我的应用程序并看到崩溃,错误消息是这样的:
Unable to instantiate receiver com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
更新只是改变了广告的频率,没有别的。我正在使用 firebase-core 和 firebase-ads。 仅当从 Play 商店安装应用程序而不是通过 adb 或在本地设备上安装 APK 时才会发生崩溃 - 崩溃似乎也只发生在第一次打开时。 目前,我已从我的应用中删除了 firebase-core 和 firebase-ads,并正在等待应用在商店中更新。
更新:删除 firebase-core 和 firebase-ads 似乎已经解决了这个问题。虽然,我仍然希望在我的应用中使用 firebase。
谢谢。
【问题讨论】:
-
使用 apk 分析器工具(Android Studio 有一个)探索你最终的 *.apk,看看它是否真的包含错过的类。
-
你是否使用 Proguard 混淆了你的代码?
-
我没有在我的项目中使用 firebase。但问题存在。有其他解决方案吗?谢谢