2016-12-04 93 views
2

我最近更新我在谷歌Play應用程式,並看到了崩潰的錯誤信息是這樣的:無法實例化接收機com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver

Unable to instantiate receiver com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver" 

更新不僅改變頻率廣告,沒有別的。我正在使用Firebase核心和Firebase廣告。 當應用程序從Play商店安裝而不是在adb上安裝或在本地將APK安裝在設備上時,崩潰只會在第一次打開時發生。 現在,我已經從我的應用中刪除了firebase-core和firebase-ads,並且正在等待應用在商店中更新。

更新:刪除firebase核心和firebase廣告似乎已經解決了這個問題。儘管如此,我仍然希望在我的應用中使用Firebase。

謝謝。

+0

用apk分析工具(Android Studio有一個)探索你的最終* .apk,看它是否真的包含錯過的類。 –

+0

你使用Proguard混淆你的代碼嗎? – Vaiden

回答

0

Google FireBase依賴於正在客戶端設備上安裝的Google Play服務。

你需要確保用戶已安裝了設備上的谷歌最新的播放服務,並提示他更新和/或安裝在需要的時候: https://developers.google.com/android/guides/setup#ensure_devices_have_the_google_play_services_apk

和快速代碼段做到了這一點: Android app requires Google Play Service Update - Open button instead of Update

+0

在我的測試設備上,我安裝了最新的Google Play服務,該應用程序仍然崩潰。 – t50

+0

我有最新版本的Google Play服務,並且錯誤仍然存​​在。 –

相關問題