Vai*_*esh 5 android xamarin.android xamarin android-multidex
我创建了一个小应用程序.当我尝试在genymotion模拟器上运行应用程序时,它会弹出" 不幸的是我的应用已停止 "
应用输出:
Forwarding debugger port 8834
Detecting existing process
[MultiDex] VM with version 1.6.0 does not have multidex support
[MultiDex] install
[MultiDex] MultiDexExtractor.load(/data/app/purposecolor.purposecolor-2.apk, false)
[MultiDex] Detected that extraction must be performed.
[MultiDex] load found 0 secondary dex files
[MultiDex] install done
[AndroidRuntime] Shutting down VM
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_23 or Xamarin.Android.Platform!
[AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:4563)
[AndroidRuntime] at android.app.ActivityThread.installContentProviders(ActivityThread.java:4190)
[AndroidRuntime] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4132)
[AndroidRuntime] at android.app.ActivityThread.access$1300(ActivityThread.java:130)
[AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:99)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:137)
[AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:4745)
[AndroidRuntime] at java.lang.reflect.Method.invokeNative(Native Method)
[AndroidRuntime] at java.lang.reflect.Method.invoke(Method.java:511)
[AndroidRuntime] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
[AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
[AndroidRuntime] at dalvik.system.NativeStart.main(Native Method)
[AndroidRuntime] Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_23 or Xamarin.Android.Platform!
[AndroidRuntime] at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:38)
[AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:4560)
[AndroidRuntime] ... 12 more
[AndroidRuntime] Caused by: android.content.pm.PackageManager$NameNotFoundException: Xamarin.Android.Platform
[AndroidRuntime] at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:210)
[AndroidRuntime] at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:32)
[AndroidRuntime] ... 13 more
[Process] Sending signal. PID: 1845 SIG: 9
Run Code Online (Sandbox Code Playgroud)
使用Android版编译: Use Latest Platform (API Level 23(Xamarin.Android v6.0 Support))
最低Android到目标: API Level 16(Xamarin.Android v4.1 Support)
目标Android版本: API Level 16(Xamarin.Android v4.1 Support)
在项目选项中禁用Multi-Dex解决了我的问题。
项目-->选项--> Android 构建-->常规--> 取消选中启用 Multi-Dex
感谢@AlexLipov 给我提示
[MultiDex] load found 0 secondary dex files
| 归档时间: |
|
| 查看次数: |
4531 次 |
| 最近记录: |