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

AndriiTsokAndriiTsok Andrii TsokUAMember ✭✭
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 android.app.LoadedApk.makeApplication(LoadedApk.java:578) [AndroidRuntime] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4680) [AndroidRuntime] at android.app.ActivityThread.-wrap1(ActivityThread.java) [AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) [AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:102) [AndroidRuntime] at android.os.Looper.loop(Looper.java:148) [AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:5417) [AndroidRuntime] at java.lang.reflect.Method.invoke(Native Method) [AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) [AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) [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(BaseDexClassLoader.java:56) [AndroidRuntime] at java.lang.ClassLoader.loadClass(ClassLoader.java:511) [AndroidRuntime] at java.lang.ClassLoader.loadClass(ClassLoader.java:469) [AndroidRuntime] at android.app.Instrumentation.newApplication(Instrumentation.java:981) [AndroidRuntime] at android.app.LoadedApk.makeApplication(LoadedApk.java:573) [AndroidRuntime] ... 9 more [AndroidRuntime] Suppressed: java.io.IOException: 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(DexFile.java:295) [AndroidRuntime] at dalvik.system.DexFile.<init>(DexFile.java:80) [AndroidRuntime] at dalvik.system.DexFile.<init>(DexFile.java:59) [AndroidRuntime] at dalvik.system.DexPathList.loadDexFile(DexPathList.java:279) [AndroidRuntime] at dalvik.system.DexPathList.makePathElements(DexPathList.java:248) [AndroidRuntime] at dalvik.system.DexPathList.<init>(DexPathList.java:120) [AndroidRuntime] at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48) [AndroidRuntime] at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65) [AndroidRuntime] at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:58) [AndroidRuntime] at android.app.LoadedApk.getClassLoader(LoadedApk.java:376) [AndroidRuntime] at android.app.LoadedApk.makeApplication(LoadedApk.java:568) [AndroidRuntime] ... 9 more [AndroidRuntime] Suppressed: java.lang.ClassNotFoundException: md51c12cc5cd88542894be0a3d7e5d5041e.MainApplication [AndroidRuntime] at java.lang.Class.classForName(Native Method) [AndroidRuntime] at java.lang.BootClassLoader.findClass(ClassLoader.java:781) [AndroidRuntime] at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) [AndroidRuntime] at java.lang.ClassLoader.loadClass(ClassLoader.java:504) [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 ?

Posts

  • TimBartonTimBarton Tim Barton USMember

    I'm having this issue after updating.

  • Jason.DenneyJason.Denney Jason Denney USMember

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

  • MakarandKhairnarMakarandKhairnar Makarand Khairnar INMember ✭✭

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

  • JonDouglasJonDouglas Jon Douglas 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:

    https://bugzilla.xamarin.com/show_bug.cgi?id=44633

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

  • AlexSAlexS Alex Sorokoletov 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.