Xamarin Studio Android - Unable to create HelloWorld with Latest and Greatest Platform(Xamarin Studio Android - 无法使用最新和最好的平台创建 HelloWorld)
问题描述
I've created a new project, selected "Android App" , "Latest and Greatest" and as theme "Material". Also, I'm intalling Google Play services.
After this, I try running the app created by default, and get the following error (on my phone and genymotion emulator).
[art] Late-enabling -Xcheck:jni
[AndroidRuntime] Shutting down VM
[AndroidRuntime] FATAL EXCEPTION: main
[AndroidRuntime] Process: Memetizame.Memetizame, PID: 5804
[AndroidRuntime] java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_22 or Xamarin.Android.Platform!
[AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:4967)
[AndroidRuntime] at android.app.ActivityThread.installContentProviders(ActivityThread.java:4559)
[AndroidRuntime] at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4499)
[AndroidRuntime] at android.app.ActivityThread.access$1500(ActivityThread.java:144)
[AndroidRuntime] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1339)
[AndroidRuntime] at android.os.Handler.dispatchMessage(Handler.java:102)
[AndroidRuntime] at android.os.Looper.loop(Looper.java:135)
[AndroidRuntime] at android.app.ActivityThread.main(ActivityThread.java:5221)
[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:899)
[AndroidRuntime] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
[AndroidRuntime] Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.Platform.ApiLevel_22 or Xamarin.Android.Platform!
[AndroidRuntime] at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:38)
[AndroidRuntime] at android.app.ActivityThread.installProvider(ActivityThread.java:4964)
[AndroidRuntime] ... 11 more
[AndroidRuntime] Caused by: android.content.pm.PackageManager$NameNotFoundException: Xamarin.Android.Platform
[AndroidRuntime] at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:281)
[AndroidRuntime] at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:32)
[AndroidRuntime] ... 12 more
You need to make changes in "Target Version". (If you are using Visual Studio, then you need to change "Compile version" too.)
If you are working in Xamarin Studio, then double click on your project; "Project Options" will open, then click on "General" and change "Target Version" (select appropriate version from drop-down).
For Visual Studio:
In Solution Explorer, open the shortcut menu for the project that you want to change, and then choose Properties.
In the left column of the properties window, choose the Application tab.
In the "Compile using Android Version" and Target Framework list, choose the version that you want.
In the verification dialog box that appears, choose the Yes button.
I hope this solution solves your problem.
这篇关于Xamarin Studio Android - 无法使用最新和最好的平台创建 HelloWorld的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Xamarin Studio Android - 无法使用最新和最好的平台创建 HelloWorld


基础教程推荐
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01