Forum Xamarin.Android


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

RuntimeException: Unable to instantiate receiver

NielsCupNielsCup NLMember ✭✭✭
edited May 2017 in Xamarin.Android

Hi, I encounter the error below on first startup when installing our Android app from the Google Play store. I can reproduce this error if I download the app from the store on my Samsung S7. The app crashes the first time it is opened, if I open it again the app runs fine. I have multidex and proguard enabled. If I disable proguard the error is gone so I suppose there is something missing in our proguard configuration. I have tried several configurations and currently it looks like below. Is there anything missing in my configuration file, or could this error be caused by something else?


textjava.lang.RuntimeException: Unable to instantiate receiver java.lang.ClassNotFoundException: Didn't find class "" on path: DexPathList[[zip file "/data/app/com.rapp.planning-1/base.apk"],nativeLibraryDirectories=[/data/app/com.rapp.planning-1/lib/arm, /vendor/lib, /system/lib]]
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(
    Caused by: java.lang.ClassNotFoundException: Didn't find class "" on path: DexPathList[[zip file "/data/app/com.rapp.planning-1/base.apk"],nativeLibraryDirectories=[/data/app/com.rapp.planning-1/lib/arm, /vendor/lib, /system/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(
    at java.lang.ClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(

Proguard configuration:

# Custom Proguard configurations.

-keep public class {
    public static final *** NULL;

-keepnames class *
-keepclassmembernames class * { *;

-keepnames class * implements android.os.Parcelable {
    public static final ** CREATOR;

-keepclassmembers class * implements android.os.Parcelable {
    static ** CREATOR;

-keep public class* { public *; }
-keepnames class

Best Answer


Sign In or Register to comment.