简体   繁体   English

NU1107-更新nuget包时的Xamarin Android错误

[英]NU1107 - Xamarin Android erro when updating nuget packages

I've been trying to update an XF solution. 我一直在尝试更新XF解决方案。 I've read a bunch of posts on this. 我已经阅读了很多关于此的文章。 Basically, the suggestion seems to be to update packages in an order. 基本上,建议似乎是按顺序更新软件包。 I've been gotten rid of all of my Xamarin.Android.Support.* libraries. 我已经摆脱了所有Xamarin.Android.Support。*库。 I've gotten rid of my Xamarin Essentials. 我已经摆脱了Xamarin Essentials。 Basically, I've gotten rid of everything in my nuget references. 基本上,我已经摆脱了我的nuget引用中的所有内容。 I'm lost on what to do now. 我迷失了现在该做什么。 Any suggestions are appreciated. 任何建议表示赞赏。

Severity Code Description Project File Line Suppression State Error NU1107 Version conflict detected for Xamarin.Android.Support.Core.Utils. 严重性代码说明项目文件行抑制状态错误NU1107检测到Xamarin.Android.Support.Core.Utils的版本冲突。 Install/reference Xamarin.Android.Support.Core.Utils 27.0.2.1 directly to project GolferAdmin.Android to resolve this issue. 直接将Xamarin.Android.Support.Core.Utils 27.0.2.1安装/引用到项目GolferAdmin.Android中即可解决此问题。 GolferAdmin.Android -> GolferAdmin -> Xamarin.Essentials 1.0.0 -> Xamarin.Android.Support.Core.Utils (>= 27.0.2.1) GolferAdmin.Android -> Xamarin.Forms 3.4.0.1008975 -> Xamarin.Android.Support.v4 27.0.2 -> Xamarin.Android.Support.Core.Utils (= 27.0.2). GolferAdmin.Android-> GolferAdmin-> Xamarin.Essentials 1.0.0-> Xamarin.Android.Support.Core.Utils(> = 27.0.2.1)GolferAdmin.Android-> Xamarin.Forms 3.4.0.1008975-> Xamarin.Android.Support .v4 27.0.2-> Xamarin.Android.Support.Core.Utils(= 27.0.2)。 GolferAdmin.Android C:\\Users\\theev\\Dropbox\\Projects\\GolfMobileUserAdmin\\GolferAdmin\\GolferAdmin\\GolferAdmin.Android\\GolferAdmin.Android.csproj 1 GolferAdmin.Android C:\\ Users \\ theev \\ Dropbox \\ Projects \\ GolfMobileUserAdmin \\ GolferAdmin \\ GolferAdmin \\ GolferAdmin.Android \\ GolferAdmin.Android.csproj 1

Just to update this, I also got this exact same problem with a frest xf project that has just been created. 只是为了进行更新,我刚创建的一个frest xf项目也遇到了同样的问题。

Ok, so I finally got the updated packages to install. 好的,所以我终于有了更新的软件包来安装。 I've read redth's blog post on this. 我已经阅读了redth的博客文章。 That was still no help. 那仍然没有帮助。 I finally had to uninstall everyone of the android support library nuget packages, reinstall them, and reboot. 我终于不得不卸载所有android支持库nuget软件包,重新安装它们,然后重新启动。 I think this reboot is actually a big deal. 我认为重新启动实际上是一件大事。 As I remember reading, VS keeps things in memory, and it had an in memory image of the older components that were creating a conflict. 我记得读过,VS将事物保存在内存中,并且它在内存中显示了正在发生冲突的旧组件。 By rebooting, everything was flushed. 通过重新启动,一切都被刷新了。 I forgot that I have had this problem before. 我忘了我以前有这个问题。 anyway, I think that was the solution. 无论如何,我认为这是解决方案。

Hopefully some of this helps. 希望其中一些帮助。

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

相关问题 在单元测试项目中检测到NU1107版本冲突 - NU1107 Version conflict detected in Unit Test project NU1107:Microsoft.EntityFrameworkCore.SqlServer 的 .Net Core 2.1 兼容替代品? - NU1107: .Net Core 2.1-compatible alternatives to Microsoft.EntityFrameworkCore.SqlServer? 错误NU1107版本冲突检测到Microsoft.CodeAnalysis.Common - Error NU1107 Version conflict detected for Microsoft.CodeAnalysis.Common Xamarin.Android中的NuGet软件包(Firebase消息传递) - NuGet packages in Xamarin.Android (Firebase messaging) 如何在我的 iOS 和 Android 项目中用 .NET MAUI NuGet 包替换我的 Xamarin NuGet 包? - How can I replace my Xamarin NuGet packages with .NET MAUI NuGet packages in my iOS and Android projects? 无法安装NuGet-Packages(Xamarin Android项目) - Can't install NuGet-Packages (Xamarin Android project) Xamarin更新和NuGet周期 - Xamarin Updating and NuGet Cycles 如何获取Xamarin.Android.Support.v4和Xamarin.Android.Support.v7.AppCompat NuGet软件包 - How to get Xamarin.Android.Support.v4 and Xamarin.Android.Support.v7.AppCompat NuGet packages 尽管已安装软件包,但无法找到 NuGet 软件包 NU1101 - Unable to find NuGet packages despite packages being installed NU1101 .Net Core 2.0在dotnet还原期间警告NU1603,NuGet套件问题 - .Net Core 2.0 Warning NU1603 during dotnet restore, problems with NuGet packages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM