Bug 45280 - App crash after updating to Xamarin.Androi 7
Summary: App crash after updating to Xamarin.Androi 7
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 7.0 (C8)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2016-10-11 16:48 UTC by Alex Rainman
Modified: 2017-07-03 09:20 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Alex Rainman 2016-10-11 16:48:01 UTC
Cannot use Xamarin.Android 7, i have to downgrade to previous version.

[AndroidRuntime] Shutting down VM
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] Process: com.slbdev.nativetemplate, PID: 29264
[AndroidRuntime] java.lang.RuntimeException: Unable to instantiate application md5a7bdd367ea668246296531cb393c91c7.MainApplication: java.lang.ClassNotFoundException: Didn't find class "md5a7bdd367ea668246296531cb393c91c7.MainApplication" on path: DexPathList[[zip file "/data/app/com.slbdev.nativetemplate-1/base.apk"],nativeLibraryDirectories=[/data/app/com.slbdev.nativetemplate-1/lib/arm64, /data/app/com.slbdev.nativetemplate-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
[AndroidRuntime] 	at android.app.LoadedApk.makeApplication(LoadedApk.java:676)
[AndroidRuntime] 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6294)
[AndroidRuntime] 	at android.app.ActivityThread.access$1800(ActivityThread.java:222)
[AndroidRuntime] 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1861)
[AndroidRuntime] 	at android.os.Handler.dispatchMessage(Handler.java:102)
[AndroidRuntime] 	at android.os.Looper.loop(Looper.java:158)
[AndroidRuntime] 	at android.app.ActivityThread.main(ActivityThread.java:7229)
[AndroidRuntime] 	at java.lang.reflect.Method.invoke(Native Method)
[AndroidRuntime] 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
[AndroidRuntime] 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
[AndroidRuntime] Caused by: java.lang.ClassNotFoundException: Didn't find class "md5a7bdd367ea668246296531cb393c91c7.MainApplication" on path: DexPathList[[zip file "/data/app/com.slbdev.nativetemplate-1/base.apk"],nativeLibraryDirectories=[/data/app/com.slbdev.nativetemplate-1/lib/arm64, /data/app/com.slbdev.nativetemplate-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
[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:1004)
[AndroidRuntime] 	at android.app.LoadedApk.makeApplication(LoadedApk.java:666)
[AndroidRuntime] 	... 9 more
[AndroidRuntime] 	Suppressed: java.io.IOException: No original dex files found for dex location (arm64) /data/app/com.slbdev.nativetemplate-1/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:84)
[AndroidRuntime] 		at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:45)
[AndroidRuntime] 		at android.app.LoadedApk.getClassLoader(LoadedApk.java:434)
[AndroidRuntime] 		at android.app.LoadedApk.makeApplication(LoadedApk.java:659)
[AndroidRuntime] 		... 9 more
[AndroidRuntime] 	Suppressed: java.lang.ClassNotFoundException: md5a7bdd367ea668246296531cb393c91c7.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: 29264 SIG: 9
Comment 1 Alex Rainman 2016-10-11 16:56:08 UTC
After removing MainApplication file, the crash still happen:

[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] Process: com.slbdev.nativetemplate, PID: 31315
[AndroidRuntime] java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.ClassNotFoundException: Didn't find class "mono.MonoRuntimeProvider" on path: DexPathList[[zip file "/data/app/com.slbdev.nativetemplate-1/base.apk"],nativeLibraryDirectories=[/data/app/com.slbdev.nativetemplate-1/lib/arm64, /data/app/com.slbdev.nativetemplate-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
[AndroidRuntime] 	at android.app.ActivityThread.installProvider(ActivityThread.java:6770)
[AndroidRuntime] 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:6362)
[AndroidRuntime] 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6302)
[AndroidRuntime] 	at android.app.ActivityThread.access$1800(ActivityThread.java:222)
[AndroidRuntime] 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1861)
[AndroidRuntime] 	at android.os.Handler.dispatchMessage(Handler.java:102)
[AndroidRuntime] 	at android.os.Looper.loop(Looper.java:158)
[AndroidRuntime] 	at android.app.ActivityThread.main(ActivityThread.java:7229)
[AndroidRuntime] 	at java.lang.reflect.Method.invoke(Native Method)
[AndroidRuntime] 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
[AndroidRuntime] 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
[AndroidRuntime] Caused by: java.lang.ClassNotFoundException: Didn't find class "mono.MonoRuntimeProvider" on path: DexPathList[[zip file "/data/app/com.slbdev.nativetemplate-1/base.apk"],nativeLibraryDirectories=[/data/app/com.slbdev.nativetemplate-1/lib/arm64, /data/app/com.slbdev.nativetemplate-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]
[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.ActivityThread.installProvider(ActivityThread.java:6755)
[AndroidRuntime] 	... 10 more
[AndroidRuntime] 	Suppressed: java.io.IOException: No original dex files found for dex location (arm64) /data/app/com.slbdev.nativetemplate-1/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:84)
[AndroidRuntime] 		at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:45)
[AndroidRuntime] 		at android.app.LoadedApk.getClassLoader(LoadedApk.java:434)
[AndroidRuntime] 		at android.app.LoadedApk.makeApplication(LoadedApk.java:659)
[AndroidRuntime] 		at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6294)
[AndroidRuntime] 		... 8 more
[AndroidRuntime] 	Suppressed: java.lang.ClassNotFoundException: mono.MonoRuntimeProvider
[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
[ResourcesManager] For user 0 new overlays fetched Null
[Process] Sending signal. PID: 31315 SIG: 9
Comment 2 jellis 2016-10-28 13:34:51 UTC
Same issue here, I believe this is a dupe of https://bugzilla.xamarin.com/show_bug.cgi?id=44439

Turning of shared mono runtime resolved this for now in my case.
Comment 3 Prashant [MSFT] 2017-07-03 09:20:58 UTC
Unfortunately, we’re unable to reproduce this report. If this issue is still occurring for you, please reopen this issue and attach a reproduction to the bug by starting with a clean Xamarin.Android project adding just the code necessary to demonstrate the issue.