firebase / firebase/quickstart-android
Unable to instantiate receiver com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver: java.lang.ClassNotFoundException
- Dominant language
- Kotlin
- Stars
- 9.3k
- Forks
- 7.4k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 8
Description
Unable to instantiate receiver com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver
````
````
````
Caused by: java.lang.RuntimeException: Unable to instantiate receiver com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
at android.app.ActivityThread.handleReceiver (ActivityThread.java:4000)
at android.app.ActivityThread.access$1400 (ActivityThread.java:269)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2021)
at android.os.Handler.dispatchMessage (Handler.java:107)
at android.os.Looper.loop (Looper.java:237)
at android.app.ActivityThread.main (ActivityThread.java:7860)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1075)
Caused by java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
at java.lang.ClassLoader.loadClass (ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateReceiver (AppComponentFactory.java:110)
at androidx.core.app.CoreComponentFactory.instantiateReceiver (CoreComponentFactory.java:60)
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3993)
````
Found in firebase crash report
The device that happened, the system is concentrated below android10,
Is this because of the googleplay service version of the device itself?
Is there any way to avoid this crash?
used firebaseunity 8.9.0
Contributor guide
Research direction
Start with the Android manifest receiver declaration and the crash trace, then inspect how Firebase Unity 8.9.0 packages the measurement receiver and its dependencies on devices below Android 10. Compare the packaged classes and manifest entries with the affected device configuration. Done means the receiver no longer causes this crash, with the result verified on the reported Android versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100