Bug 40031 - Error after uninstalling Xamarin studio to use Visual studio
Summary: Error after uninstalling Xamarin studio to use Visual studio
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Mono runtime / AOT Compiler ()
Version: 6.0.99
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: dean.ellis
URL:
Depends on:
Blocks:
 
Reported: 2016-03-31 22:21 UTC by Robison Karls Custódio
Modified: 2017-06-28 10:09 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 FIXED

Description Robison Karls Custódio 2016-03-31 22:21:48 UTC
Hi, After Microsoft announce that Xamarin is now free I uninstalled my xamarin studio to use VS instead, but when I went to Test my App and Run it, it just stop working and throwing the following error:



Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.Threading.dll
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.Threading.Tasks.dll
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.Threading.Tasks.Parallel.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.Threading.Timer.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.Xml.ReaderWriter.dll
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.Xml.XDocument.dll
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.Xml.XmlSerializer.dll
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.ServiceModel.Internals.dll [External]
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/Mono.Android.dll
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/Java.Interop.dll [External]
03-31 18:07:47.920 D/Mono    ( 2036): Assembly Ref addref Java.Interop[0x9e01f940] -> System.Collections.Concurrent[0xb3ff06a0]: 2
03-31 18:07:47.920 D/Mono    ( 2036): Assembly Ref addref System.Collections.Concurrent[0xb3ff06a0] -> mscorlib[0xb3e52d60]: 4
03-31 18:07:47.920 D/Mono    ( 2036): Assembly Ref addref Java.Interop[0x9e01f940] -> System.Reflection[0xb3fbe6a0]: 2
03-31 18:07:47.920 D/Mono    ( 2036): Assembly Ref addref System.Reflection[0xb3fbe6a0] -> mscorlib[0xb3e52d60]: 5
03-31 18:07:47.931 D/Mono    ( 2036): Assembly Ref addref Java.Interop[0x9e01f940] -> System.Threading[0x9e01f220]: 2
03-31 18:07:47.931 D/Mono    ( 2036): Assembly Ref addref System.Threading[0x9e01f220] -> mscorlib[0xb3e52d60]: 6
03-31 18:07:47.931 D/Mono    ( 2036): Assembly Ref addref Java.Interop[0x9e01f940] -> System.Diagnostics.Debug[0xb3ff0a00]: 2
03-31 18:07:47.931 D/Mono    ( 2036): Assembly Loader probing location: '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.dll'.
03-31 18:07:47.931 D/Mono    ( 2036): Image addref System[0x9e01fb80] -> /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.dll[0x9e024500]: 2
03-31 18:07:47.931 D/Mono    ( 2036): Assembly System[0x9e01fb80] added to domain RootDomain, ref_count=1
03-31 18:07:47.932 D/Mono    ( 2036): AOT module '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.dll.so' not found: dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libaot-System.dll.so" not found
03-31 18:07:47.932 D/Mono    ( 2036): AOT module '/Users/builder/data/lanes/3053/a94a03b5/source/monodroid/builds/install/mono-x86/lib/mono/aot-cache/x86/System.dll.so' not found: dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libaot-System.dll.so" not found
03-31 18:07:47.932 D/Mono    ( 2036): Assembly Loader loaded assembly from location: '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.dll'.
03-31 18:07:47.932 D/Mono    ( 2036): Config attempting to parse: '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.dll.config'.
03-31 18:07:47.932 D/Mono    ( 2036): Config attempting to parse: '/Users/builder/data/lanes/3053/a94a03b5/source/monodroid/builds/install/mono-x86/etc/mono/assemblies/System/System.config'.
03-31 18:07:47.932 D/Mono    ( 2036): Assembly Ref addref System.Diagnostics.Debug[0xb3ff0a00] -> System[0x9e01fb80]: 2
03-31 18:07:47.932 D/Mono    ( 2036): Assembly Ref addref System[0x9e01fb80] -> mscorlib[0xb3e52d60]: 7
Loaded assembly: /storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/System.dll
03-31 18:07:47.937 D/Mono    ( 2036): Assembly Ref addref Java.Interop[0x9e01f940] -> System.Runtime.InteropServices[0xb3fbea60]: 2
03-31 18:07:47.937 D/Mono    ( 2036): Assembly Ref addref System.Runtime.InteropServices[0xb3fbea60] -> mscorlib[0xb3e52d60]: 8
03-31 18:07:47.941 D/Mono    ( 2036): DllImport attempting to load: 'java-interop'.
03-31 18:07:47.941 D/Mono    ( 2036): DllImport error loading library '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop" not found'.
03-31 18:07:47.941 D/Mono    ( 2036): DllImport error loading library '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop.so" not found'.
03-31 18:07:47.941 D/Mono    ( 2036): DllImport error loading library '/system/lib/libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//system/lib/libjava-interop" not found'.
03-31 18:07:47.941 D/Mono    ( 2036): DllImport error loading library '/system/lib/libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//system/lib/libjava-interop.so" not found'.
03-31 18:07:47.941 D/Mono    ( 2036): DllImport error loading library 'libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop" not found'.
03-31 18:07:47.942 D/Mono    ( 2036): DllImport error loading library 'libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop.so" not found'.
03-31 18:07:47.942 D/Mono    ( 2036): DllImport error loading library 'java-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/java-interop" not found'.
03-31 18:07:47.942 D/Mono    ( 2036): DllImport error loading library '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop" not found'.
03-31 18:07:47.942 D/Mono    ( 2036): DllImport error loading library '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop.so" not found'.
03-31 18:07:47.942 D/Mono    ( 2036): DllImport error loading library '/system/lib/libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//system/lib/libjava-interop" not found'.
03-31 18:07:47.942 D/Mono    ( 2036): DllImport error loading library '/system/lib/libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//system/lib/libjava-interop.so" not found'.
03-31 18:07:47.942 D/Mono    ( 2036): DllImport error loading library 'libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop" not found'.
03-31 18:07:47.942 D/Mono    ( 2036): DllImport error loading library 'libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop.so" not found'.
03-31 18:07:47.943 D/Mono    ( 2036): DllImport error loading library 'libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop" not found'.
03-31 18:07:47.943 W/Mono    ( 2036): DllImport unable to load library 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop" not found'.
03-31 18:07:47.943 D/Mono    ( 2036): DllImport attempting to load: 'java-interop'.
03-31 18:07:47.943 D/Mono    ( 2036): DllImport error loading library '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop" not found'.
03-31 18:07:47.943 D/Mono    ( 2036): DllImport error loading library '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop.so" not found'.
03-31 18:07:47.943 D/Mono    ( 2036): DllImport error loading library '/system/lib/libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//system/lib/libjava-interop" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library '/system/lib/libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//system/lib/libjava-interop.so" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library 'libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library 'libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop.so" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library 'java-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/java-interop" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library '/storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//storage/emulated/0/Android/data/MaoNaRoda.Droid/files/.__override__/libjava-interop.so" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library '/system/lib/libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//system/lib/libjava-interop" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library '/system/lib/libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86//system/lib/libjava-interop.so" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library 'libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library 'libjava-interop.so': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop.so" not found'.
03-31 18:07:47.944 D/Mono    ( 2036): DllImport error loading library 'libjava-interop': 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop" not found'.
03-31 18:07:47.944 W/Mono    ( 2036): DllImport unable to load library 'dlopen failed: library "/data/app/MaoNaRoda.Droid-1/lib/x86/libjava-interop" not found'.
Unhandled Exception:

System.DllNotFoundException: java-interop

referenceTable GDEF length=670 1
referenceTable GSUB length=7202 1
referenceTable GPOS length=24560 1
03-31 18:08:13.627 E/mono    ( 2036): 
03-31 18:08:13.627 E/mono    ( 2036): Unhandled Exception:
03-31 18:08:13.627 E/mono    ( 2036): System.DllNotFoundException: java-interop
03-31 18:08:13.627 E/mono    ( 2036):   at (wrapper managed-to-native) Java.Interop.NativeMethods:java_interop_jnienv_get_java_vm (intptr,intptr&)
03-31 18:08:13.627 E/mono    ( 2036):   at Java.Interop.JniEnvironment+References.GetJavaVM (IntPtr jnienv, System.IntPtr& vm) [0x00003] in /Users/builder/data/lanes/2923/a908ff16/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.cs:163 
03-31 18:08:13.627 E/mono    ( 2036):   at Java.Interop.JniEnvironmentInfo.set_EnvironmentPointer (IntPtr value) [0x0002e] in /Users/builder/data/lanes/2923/a908ff16/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.cs:190 
03-31 18:08:13.627 E/mono    ( 2036):   at Java.Interop.JniEnvironmentInfo..ctor (IntPtr environmentPointer, Java.Interop.JniRuntime runtime) [0x00009] in /Users/builder/data/lanes/2923/a908ff16/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.cs:215 
03-31 18:08:13.627 E/mono    ( 2036):   at Java.Interop.JniRuntime..ctor (Java.Interop.CreationOptions options) [0x00105] in /Users/builder/data/lanes/2923/a908ff16/source/Java.Interop/src/Java.Interop/Java.Interop/JniRuntime.cs:192 
03-31 18:08:13.627 E/mono    ( 2036):   at Android.Runtime.AndroidRuntime..ctor (IntPtr jnienv, IntPtr vm, Boolean allocNewObjectSupported, IntPtr classLoader, IntPtr classLoader_loadClass) [0x00000] in /Users/builder/data/lanes/2923/a908ff16/source/monodroid/src/Mono.Android/src/Runtime/AndroidRuntime.cs:17 
03-31 18:08:13.627 E/mono    ( 2036):   at Android.Runtime.JNIEnv.Initialize (Android.Runtime.JnienvInitializeArgs* args) [0x00168] in /Users/builder/data/lanes/2923/a908ff16/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:237 
03-31 18:08:13.627 E/mono-rt ( 2036): [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: java-interop
03-31 18:08:13.627 E/mono-rt ( 2036):   at (wrapper managed-to-native) Java.Interop.NativeMethods:java_interop_jnienv_get_java_vm (intptr,intptr&)
03-31 18:08:13.627 E/mono-rt ( 2036):   at Java.Interop.JniEnvironment+References.GetJavaVM (IntPtr jnienv, System.IntPtr& vm) [0x00003] in /Users/builder/data/lanes/2923/a908ff16/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.cs:163 
03-31 18:08:13.627 E/mono-rt ( 2036):   at Java.Interop.JniEnvironmentInfo.set_EnvironmentPointer (IntPtr value) [0x0002e] in /Users/builder/data/lanes/2923/a908ff16/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.cs:190 
03-31 18:08:13.627 E/mono-rt ( 2036):   at Java.Interop.JniEnvironmentInfo..ctor (IntPtr environmentPointer, Java.Interop.JniRuntime runtime) [0x00009] in /Users/builder/data/lanes/2923/a908ff16/source/Java.Interop/src/Java.Interop/Java.Interop/JniEnvironment.cs:215 
03-31 18:08:13.627 E/mono-rt ( 2036):   at Java.Interop.JniRuntime..ctor (Java.Interop.CreationOptions options) [0x00105] in /Users/builder/data/lanes/2923/a908ff16/source/Java.Interop/src/Java.Interop/Java.Interop/JniRuntime.cs:192 
03-31 18:08:13.627 E/mono-rt ( 2036):   at Android.Runtime.AndroidRuntime..ctor (IntPtr jnienv, IntPtr vm, Boolean allocNewObjectSupported, IntPtr classLoader, IntPtr classLoader_loadClass) [0x00000] in /Users/builder/data/lanes/2923/a908ff16/source/monodroid/src/Mono.Android/src/Runtime/AndroidRuntime.cs:17 
03-31 18:08:13.627 E/mono-rt ( 2036):   at Android.Runtime.JNIEnv.Initialize (Android.Runtime.JnienvInitializeArgs* args) [0x00168] in /Users/builder/data/lanes/2923/a908ff16/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.cs:237
Comment 1 Robison Karls Custódio 2016-03-31 22:24:59 UTC
Sorry nevermind, i just uninstalled the Old application on phone and ran again and it worked.
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2016-03-31 22:38:04 UTC
## Note to the Xamarin team

Based on Comment 1, it sounds like this is a case where the "existing app on device" isn't being refreshed as expected after updating the development tools and rebuilding and redeploying the app.

I wouldn't be too surprised if this scenario will be resolved by the fix for Bug 36514.