无法实例化接收器com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver

t50*_*t50 7 android firebase

我最近在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"
Run Code Online (Sandbox Code Playgroud)

更新仅改变了广告的频率,没有其他改变。我正在使用firebase-core和firebase-ads。仅当从Play商店安装应用而不是通过adb安装应用或不在设备上本地安装APK时才发生崩溃-崩溃似乎也仅在首次打开时发生。目前,我已从我的应用程序中删除了firebase-core和firebase-ads,并正在等待应用程序在商店中更新。

更新:删除firebase-core和firebase-ads似乎已解决了该问题。虽然,我仍然想在我的应用程序中使用Firebase。

谢谢。

Vai*_*den 1

Google FireBase 依赖于客户端设备上安装的 Google Play 服务。

您需要确保用户在其设备上安装了最新的 Google Play 服务,并在需要时提示他更新和/或安装: https://developers.google.com/android/guides/setup#ensure_devices_have_the_google_play_services_apk

一个快速的代码片段可以做到这一点: Android应用程序需要Google Play服务更新 - 打开按钮而不是更新