2016-05-17 47 views
4

我創建了一個小應用程序。 當我嘗試運行在genymotion模擬器的應用程序,它提供了彈出式「不幸的是我的應用程序已經停止版本1.6.0的虛擬機沒有multidex支持:無法找到應用程序Mono.Android.Platform.ApiLevel_23或Xamarin.Android.Platform


應用程序輸出:

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 

編譯使用的Android版本: Use Latest Platform (API Level 23(Xamarin.Android v6.0 Support))

Android的最低Android目標:API Level 16(Xamarin.Android v4.1 Support)

目標的Android版本:0​​

+0

'load found 0 secondary dex files'。這不會解決您的問題,但是如果您不需要,爲什麼要使用multidex? –

回答

0

禁用在項目選項Multi-Dex解決我的問題。

項目 - >選項 - >Android組建 - >一般 - >取消選中啓用多地塞米松


感謝@AlexLipov給我暗示

[MultiDex] load found 0 secondary dex files

相關問題