简体   繁体   English

Xamarin表单:使用Visual Studio在Droid项目中出错

[英]Xamarin Forms: error in Droid project with Visual Studio

there are three day I'm trying to have a clear solution to start for each platform. 有三天我试图为每个平台提供一个明确的解决方案。 Unfortunately, I'm very frustrating because I can't have that. 不幸的是,我非常沮丧,因为我无法做到这一点。 Now in droid project there is a new kind of error: 现在在droid项目中出现了一种新的错误:

java.lang.IllegalArgumentException: already added : Landroid/support/v4/view/VelocityTrackerCompat; java.lang.IllegalArgumentException:已添加:Landroid / support / v4 / view / VelocityTrackerCompat;

I tried to build and rebuild the project a lot of times without success. 我试图建立和重建项目很多次都没有成功。 What have to do? 怎么办?

项目中的Android引用

Then I tried to update my Droid solution but the result is wrong then before. 然后我尝试更新我的Droid解决方案但结果是错误的。

I googled a bit but obviuosly I can't find a solution or anyone with my same problem. 我用谷歌搜索了一下,但显然我无法找到解决方案或任何有同样问题的人。 Visual Studio 2015 shows my a lot of errors. Visual Studio 2015显示了很多错误。

Visual Studio错误

The version of Xamarin Studio is old. Xamarin Studio的版本很旧。

Nuget更新

This is the new list of references for the Droid project. 这是Droid项目的新参考列表。 I don't know what I can do now... 我不知道我现在能做什么......

更新后的引用列表

To resolve this issue, I removed all references from the Droid project and then I reinstalled all references. 为解决此问题,我删除了Droid项目中的所有引用,然后重新安装了所有引用。

Now it's working fine. 现在它工作正常。

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

相关问题 使用Xamarin.Forms时,Xamarin.Droid在Visual Studio 2015中导致生成错误 - Xamarin.Droid causing build errors in Visual Studio 2015 when using Xamarin.Forms Visual Studio 编译错误,Xamarin.forms - Visual studio compilation error, Xamarin.forms 在Xamarin表单droid项目中的导航栏上显示母版页 - display master page over navigation bar in xamarin forms droid project Anglesharp和Xamarin.Forms OpenAsync无法在.Droid项目中使用 - Anglesharp and Xamarin.Forms OpenAsync does not work in.Droid project PathTooLongException Xamarin Droid项目 - PathTooLongException Xamarin Droid Project Xamarin.Forms Visual Studio 2017项目未部署 - Xamarin.Forms Visual Studio 2017 project does not deploy Xamarin / Visual Studio Mac空白表格项目错误 - Xamarin/Visual Studio Mac Blank Forms Project Errors xamarin 表单错误 Droid.Resource 不包含字符串的定义 - xamarin forms error Droid.Resource does not contain a definition for string 错误:您必须调用Xamarin.Forms.Init()-Visual Studio Xamarin,单元测试错误 - Error: You MUST call Xamarin.Forms.Init() - Visual Studio Xamarin, unit test error 如何修复在Visual Studio中创建Xamarin项目时出现的错误 - How to fix an Error in creating a xamarin project in visual studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM