I get that exception in my Xamarin.Forms Android App (all latest SDK) on a Samsung Galaxy mobile phone on app launch.
2-15 01:49:56.431 29826 29826 D AndroidRuntime: Shutting down VM 02-15 01:49:56.431 29826 29826 E AndroidRuntime: FATAL EXCEPTION: main 02-15 01:49:56.431 29826 29826 E AndroidRuntime: Process: com.rolsped.stage.TruckerApp, PID: 29826 02-15 01:49:56.431 29826 29826 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_24 or Xamarin.Android.Platform! 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6770) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:6362) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6302) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.app.ActivityThread.access$1800(ActivityThread.java:222) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1861) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.os.Looper.loop(Looper.java:158) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_24 or Xamarin.Android.Platform! 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:38) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:6767) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: ... 10 more 02-15 01:49:56.431 29826 29826 E AndroidRuntime: Caused by: android.content.pm.PackageManager$NameNotFoundException: Xamarin.Android.Platform 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:368) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:32) 02-15 01:49:56.431 29826 29826 E AndroidRuntime: ... 11 more
I get it only on that type of a mobile phone.
All I found until now doesn't solve that issue including setting the AndroidUseLatestPlatformSdk
to false
what I found here.
Hope someone can help me out.
Thanks
Eric
Disabling Use Shared Runtime
from Project ->Options->Android Options
solved it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With