couldn't find "libmonodroid.so"

After upgrading to the latest stable version of xamarin, I started getting the following error when my application starts up (deploying to an S6):

[AndroidRuntime] java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mobileepiphany.touchmobile-1/base.apk"],nativeLibraryDirectories=[/data/app/com.mobileepiphany.touchmobile-1/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libmonodroid.so"
[AndroidRuntime] at java.lang.Runtime.loadLibrary(Runtime.java:367)
[AndroidRuntime] at java.lang.System.loadLibrary(System.java:988)
[AndroidRuntime] at mono.MonoPackageManager.LoadApplication(MonoPackageManager.java:24)
[AndroidRuntime] at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:22)
[AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:6384)
[AndroidRuntime] at android.app.ActivityThread.installContentProviders(ActivityThread.java:5979)
[AndroidRuntime] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5919)
[AndroidRuntime] at android.app.ActivityThread.access$1700(ActivityThread.java:198)
[AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1743)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:102)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:145)
[AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:6843)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Native Method)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Method.java:372)
[AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
[AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)

Any ideas? It was starting up fine previous to this xamarin upgrade.

Thanks,
-Aaron

Tagged:

Posts

  • CheesebaronCheesebaron DKInsider, University mod

    And you are making sure you are not deploying an APK where Use Shared Runtime is enabled?

  • Aaron.6482Aaron.6482 USMember ✭✭

    I am not using the shared runtime.

  • SimonWadsSimonWads GBMember ✭✭

    I'm also getting this on a build using the latest versions of everything (except XForms which is still at 1.4.2)

  • SimonWadsSimonWads GBMember ✭✭

    Same result with Forms updated to the latest version too.

    [art] Late-enabling -Xcheck:jni [art] VMHOOK: rlim_cur : 0 pid:31163 [AndroidRuntime] FATAL EXCEPTION: main [AndroidRuntime] Process: uk.co.provident.prospects, PID: 31163 [AndroidRuntime] java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/uk.co.provident.prospects-1/base.apk"],nativeLibraryDirectories=[/data/app/uk.co.provident.prospects-1/lib/arm, /system/lib, /vendor/lib, system/vendor/lib, system/vendor/lib/egl, system/lib/hw]]] couldn't find "libmonodroid.so" [AndroidRuntime] at java.lang.Runtime.loadLibrary(Runtime.java:366) [AndroidRuntime] at java.lang.System.loadLibrary(System.java:989) [AndroidRuntime] at mono.MonoPackageManager.LoadApplication(MonoPackageManager.java:24) [AndroidRuntime] at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:22) [AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:5417) [AndroidRuntime] at android.app.ActivityThread.installContentProviders(ActivityThread.java:4988) [AndroidRuntime] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4923) [AndroidRuntime] at android.app.ActivityThread.access$1500(ActivityThread.java:144) [AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424) [AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:102) [AndroidRuntime] at android.os.Looper.loop(Looper.java:155) [AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:5696) [AndroidRuntime] at java.lang.reflect.Method.invoke(Native Method) [AndroidRuntime] at java.lang.reflect.Method.invoke(Method.java:372) [AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028) [AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)

  • SylvainGravelSylvainGravel CAMember ✭✭

    Thanks mate, I've been having this issue with emulators forever!!!

    @CHAMAMourad said:
    In your Android Build Advance options try to check the ABI wich match your emulator (x86_64 in my case)

  • Thanks @CHAMAMourad you solved my issue!

    @CHAMAMourad said:
    In your Android Build Advance options try to check the ABI wich match your emulator (x86_64 in my case)

  • NicolaLoroNicolaLoro USMember ✭✭

    Thanks @CHAMAMourad. I've spent half day on this

Sign In or Register to comment.