[英]Error building helloWorld application using xamarin.Forms
I am trying to run the hello forms application that visual studio creates when you select the Xamarin.Forms template.But I am getting lots of errors when I try to start the android version of the application.Here are some of the errors that I get : 我正在尝试运行Visual Studio在选择Xamarin.Forms模板时创建的hello表单应用程序,但是当我尝试启动该应用程序的android版本时却遇到了很多错误。 :
Activate(java.lang.String,java.lang.String,java.lang.Object,java.lang.Object[])
in mono.android.TypeManager cannot be applied to
(java.lang.String,java.lang.String,md5d4dd78677dce656d5db26c85a3743ef3.CarouselPageAdapter,java.lang.Object[])
mono.android.TypeManager.Activate
("Xamarin.Forms.Platform.Android.CarouselPageAdapter,
Xamarin.Forms.Platform.Android, Version=1.3.3.0, Culture=neutral,
PublicKeyToken=null", "", this, new java.lang.Object[] { });
cannot find symbol symbol : method getClass() location: class
md5d4dd78677dce656d5db26c85a3743ef3.CarouselPageAdapter if (getClass
() == CarouselPageAdapter.class)
package android.support.v4.content.Loader does not exist
android.support.v4.content.Loader.OnLoadCompleteListener
all the other errors(total of 30) are like the errors above only with different class names.I already updated the support library from the android sdk manager but I still get these errors.What do you suggest I do? 所有其他错误(共30个)仅与上面的错误类似,只是具有不同的类名。我已经从android sdk管理器更新了支持库,但我仍然收到这些错误。您建议我做什么?
I figured it out myself finally what I did was to download android_m2repository_r10 from google server and extract it in 我自己弄清楚了,最后我要做的是从Google服务器下载android_m2repository_r10并将其解压缩到
C:\\Users\\%USERNAME%\\AppData\\Local\\Xamarin\\Android.Support.v4\\21.0.3\\ C:\\用户\\%USERNAME%\\应用程序数据\\本地\\ Xamarin \\ Android.Support.v4 \\ 21.0.3 \\
uninstalled jdk 6 from my pc, reinstalled jdk7, rebooted my pc and then rebuilt my project and now all the errors are gone 从我的电脑上卸载了jdk 6,重新安装了jdk7,重新启动了我的电脑,然后重建了我的项目,现在所有错误都消失了
确保您的Android项目目标高于API16
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.