简体   繁体   English

Xamarin Studio跨平台应用程序错误

[英]Xamarin Studio cross platform app error

At the moment I'm trying to launch empty app with cross-platform solution in Xamarin Studio. 目前我正在尝试使用Xamarin Studio中的跨平台解决方案启动空应用程序。

I've tried make app with empty library project and shared library, both has same errors. 我尝试使用空库项目和共享库制作app,两者都有相同的错误。 Now unresolved problems are: 现在尚未解决的问题是:

1) Build error: 1)构建错误:

Error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file classes.jar doesn't exist. (XA5207) (*projectName*)

Error XA5207: Please install package: 'Android Support Library' available in SDK installer. Java library file libs/internal_impl-21.0.3.jar doesn't exist. (XA5207) (*projectName*)

This question didn't help me. 这个问题对我没有帮助。

2) Some links says it could be because of old Mono.Android.Support.v4 component. 2)一些链接说它可能是因为旧的Mono.Android.Support.v4组件。 My component version is 21.0.3.0. 我的组件版本是21.0.3.0。 After clicking for update it says: 点击更新后,它说:

You are trying to install this package into a project that targets 'MonoAndroid,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework.

My Mono.Android assembly version is 0.0.0.0 and I dodn't know how to update it. 我的Mono.Android程序集版本是0.0.0.0 ,我不知道如何更新它。

I've tried PCL project with PCL 4.5 - profile7 . 我尝试过使用PCL 4.5 - profile7 PCL项目PCL 4.5 - profile7 New projects builds normal, but after first project clean it gives me error about not found classes.jar file like described above. 新项目构建正常,但在第一个项目清理后,它给出了关于未找到如上所述的classes.jar文件的错误。 Another new PCL project still builds fine. 另一个新的PCL项目仍然很好。

UPDATE UPDATE

Error in PCL project occures not after clean - it occures with included Xamarin.Forms NuGet to Android project. PCL项目中的错误发生在干净之后 - 它包含在Xamarin.Forms NuGet到Android项目中。

UPDATE UPDATE

After rising target framework of android project to v4.0.3 I successfuly updated Mono.Android.Support.v4 component, but it still show me error about Please install package . 在将android项目的目标框架上升到v4.0.3我成功更新了Mono.Android.Support.v4组件,但它仍然显示有关Please install package错误。

UPDATE UPDATE

I'm using Windows 7 OS, same problem with all users including new user. 我正在使用Windows 7操作系统,所有用户都有同样的问题,包括新用户。 But on another computer with Windows 8 it works. 但在Windows 8的另一台计算机上它可以工作。 It is not a solution for me, but it can somehow help someone. 它不是我的解决方案,但它可以以某种方式帮助某人。

i think your java JDK and JRE not install properly and your path not set in your environment variable you must add your jdk path in that and if you are make application using cross platform then also add path SDK in your computer environmental variable. 我认为你的java JDK和JRE没有正确安装,你的路径没有在环境变量中设置你必须在其中添加你的jdk路径,如果你使用跨平台创建应用程序,那么还要在你的计算机环境变量中添加路径SDK。 using CMD throw creating project. 使用CMD抛出创建项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM