Crashes on application start after the latest update. XS 6.1 Xamarin.Android 7

AndriiTsokAndriiTsok UAMember ✭✭
edited September 2016 in Xamarin.Android

I'm getting crashes when my application starts. It happened right after the latest software updates from Xamarin.
I'm using MAC and XS 6.1 Xamarin.Android 7

[art] Not late-enabling -Xcheck:jni (already on) [AndroidRuntime] Shutting down VM [AndroidRuntime] FATAL EXCEPTION: main [AndroidRuntime] Process: com.XXXXXXX, PID: 2700 [AndroidRuntime] java.lang.RuntimeException: Unable to instantiate application md51c12cc5cd88542894be0a3d7e5d5041e.MainApplication: java.lang.ClassNotFoundException: Didn't find class "md51c12cc5cd88542894be0a3d7e5d5041e.MainApplication" on path: DexPathList[[zip file "/data/app/com.XXXXXXX/base.apk"],na com.XXXXXXX/base.apk!/lib/x86, /vendor/lib, /system/lib]] [AndroidRuntime] at [AndroidRuntime] at [AndroidRuntime] at [AndroidRuntime] at$H.handleMessage( [AndroidRuntime] at android.os.Handler.dispatchMessage( [AndroidRuntime] at android.os.Looper.loop( [AndroidRuntime] at [AndroidRuntime] at java.lang.reflect.Method.invoke(Native Method) [AndroidRuntime] at$ [AndroidRuntime] at [AndroidRuntime] Caused by: java.lang.ClassNotFoundException: Didn't find class "md51c12cc5cd88542894be0a3d7e5d5041e.MainApplication" on path: DexPathList[[zip file "/data/app/com.XXXXXXX/base.apk"],nativeLibraryDirectories=[/data/app/com.XXXXXXX/lib/x86, /data/app/com.XXXXXXX/base.apk!/lib/x86, /vendor/lib, /system/lib]] [AndroidRuntime] at dalvik.system.BaseDexClassLoader.findClass( [AndroidRuntime] at java.lang.ClassLoader.loadClass( [AndroidRuntime] at java.lang.ClassLoader.loadClass( [AndroidRuntime] at [AndroidRuntime] at [AndroidRuntime] ... 9 more [AndroidRuntime] Suppressed: No original dex files found for dex location /data/app/com.XXXXXXX/base.apk [AndroidRuntime] at dalvik.system.DexFile.openDexFileNative(Native Method) [AndroidRuntime] at dalvik.system.DexFile.openDexFile( [AndroidRuntime] at dalvik.system.DexFile.<init>( [AndroidRuntime] at dalvik.system.DexFile.<init>( [AndroidRuntime] at dalvik.system.DexPathList.loadDexFile( [AndroidRuntime] at dalvik.system.DexPathList.makePathElements( [AndroidRuntime] at dalvik.system.DexPathList.<init>( [AndroidRuntime] at dalvik.system.BaseDexClassLoader.<init>( [AndroidRuntime] at dalvik.system.PathClassLoader.<init>( [AndroidRuntime] at [AndroidRuntime] at [AndroidRuntime] at [AndroidRuntime] ... 9 more [AndroidRuntime] Suppressed: java.lang.ClassNotFoundException: md51c12cc5cd88542894be0a3d7e5d5041e.MainApplication [AndroidRuntime] at java.lang.Class.classForName(Native Method) [AndroidRuntime] at java.lang.BootClassLoader.findClass( [AndroidRuntime] at java.lang.BootClassLoader.loadClass( [AndroidRuntime] at java.lang.ClassLoader.loadClass( [AndroidRuntime] ... 12 more [AndroidRuntime] Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available [Process] Sending signal. PID: 2700 SIG: 9

Who is experiencing the same problem ? Any way to fix or workaround there ?


  • TimBartonTimBarton USMember

    I'm having this issue after updating.

  • I believe the workaround for myself was to disable the Shared Mono Runtime for debug.

  • Yes. I also disabled Shared mono runtime for debug and it started working for me.

  • JonDouglasJonDouglas USXamarin Team, University, Developer Group Leader Xamurai

    Hi Everyone,

    Sorry for the late response as I have been investigating this issue. I have found one of the major causes for this issue which I believe is the classes.dex file is not deploying with the base.apk if the Shared Runtime is enabled. I have collected all of this information in the following bug report which has been passed off to our engineering teams to investigate further:

    Please feel free to CC yourself to this bug to get updates.

  • AlexSAlexS USUniversity ✭✭✭

    It's been almost a month since we lost fast deployment in Android apps. Is there any chance we see it back soon? I know the bug is fixed but what about getting into our hands?
    Thank you

Sign In or Register to comment.