简体   繁体   English

未找到与给定名称匹配的资源(值与值 @integer/google_play_services_version)”- Visual Studio 2015 更新 3

[英]No resource found that matches the given name (at value with value @integer/google_play_services_version)” - Visual Studio 2015 Update 3

I found unbelieveable that by just adding a component as google play services - maps cause me so many errors on visual studio, I've already gotten the API Key but what really pissed me off, is that just adding a component gives me a god damn headache like this.我发现仅仅通过添加一个组件作为 google play 服务 - 地图导致我在 Visual Studio 上出现很多错误,我发现令人难以置信的是,我已经获得了 API 密钥,但真正让我生气的是,仅添加一个组件就给我带来了该死的像这样头疼。 I'm a newbie at xamarin.android, I've used sdk manager and I do have google play services installed already.我是 xamarin.android 的新手,我使用过 sdk 管理器,并且已经安装了 google play 服务。 If i do a BUILD I get this:如果我做一个 BUILD 我得到这个:

点击BUILD的图片

but if I do REBUILD i'll get this:但如果我重建我会得到这个:

点击 REBUILD 的图片

if you need more info please ask me for it, I'm doing a transition from desktop app development to mobile with xamarin, using Visual Studio 2015. I've spent an entire day its 12:55Am and i felt that Ive gotten to nowhere, ive seen tutorials where this errors wont even appear at all.如果您需要更多信息,请向我索取,我正在使用 Visual Studio 2015 从桌面应用程序开发过渡到使用 xamarin 的移动设备。我在上午 12 点 55 分度过了一整天,我觉得我一无所获,我看过一些教程,这些错误甚至根本不会出现。

Should I reinstall VS 2015???我应该重新安装 VS 2015 吗???

I would appreciate details in your solutions.我将不胜感激您的解决方案中的详细信息。

Thanks for your help!!!谢谢你的帮助!!!

Ok, I found a solution to my problem, so I'll explain what did I do to solve it.好的,我找到了解决问题的方法,所以我将解释我做了什么来解决它。

Firstable the solution shown at the Link provided by Rashed Biswas none of them serve to my purpose, they mainly said to delete bin and obj folder from debug folderm make a clean solution and rebuild, everytime i did that it took me to the same problem, also I'm not a lover of reinstalling VS, I think that take to much time without the certainty of solving my problem, I've done so before and in my experience sometime it solve the problem other time the problem is deeper that cant be solve like that.首先,Rashed Bis 提供的链接中显示的解决方案都没有达到我的目的,他们主要是说从调试文件夹中删除 bin 和 obj 文件夹,制作一个干净的解决方案并重建,每次我这样做时,都会遇到同样的问题,我也不喜欢重新安装 VS,我认为这需要很长时间才能确定解决我的问题,我以前这样做过,根据我的经验,有时它可以解决问题,而有时问题更深,无法解决这样解决。

So, if you watch my second picture from y post the one with thousands of errors, it tells you to download a repository from a link provided there and replace its content with the folder each error sugested, I thought in doing that for every error but i didnt read calmly the second error where it says:因此,如果您从 y 发布的第二张图片中看到有数千个错误的图片,它会告诉您从那里提供的链接下载存储库,并将其内容替换为每个错误提示的文件夹,我想对每个错误都这样做,但是我没有冷静地阅读第二个错误,它说:

Reason File C:\\blahblahblah.zip is not a zip archive原因文件 C:\\blahblahblah.zip 不是 zip 存档

so, I went to that folder and deleted its entire content, then I made a rebuild and voila errors gone, BUT... I still had a problem my nuget package manager broke down, everytime I wanted to use it on any Xamarin.Android project in Visual Studio 2015 it showed me a message that said:所以,我去了那个文件夹并删除了它的全部内容,然后我进行了重建,瞧,错误消失了,但是......每次我想在任何 Xamarin.Android 上使用它时,我的 nuget 包管理器仍然有问题Visual Studio 2015 中的项目,它向我展示了一条消息:

Description: An exception was thrown while initializing part "NuGet.PackageManagement.VisualStudio.VSSolutionManager".说明:初始化部件“NuGet.PackageManagement.VisualStudio.VSSolutionManager”时引发异常。 Microsoft.VisualStudio.Composition.CompositionFailedException: An exception was thrown while initializing part "NuGet.PackageManagement.VisualStudio.VSSolutionManager". Microsoft.VisualStudio.Composition.CompositionFailedException:初始化“NuGet.PackageManagement.VisualStudio.VSSolutionManager”部分时引发异常。 ---> System.Runtime.InteropServices.COMException: GetFullVsVersionString must be called on the UI thread. ---> System.Runtime.InteropServices.COMException:必须在 UI 线程上调用 GetFullVsVersionString。

so, I found this link ay GitHub really helpful link:所以,我发现这个链接是 GitHub 非常有用的链接:

https://github.com/NuGet/Home/issues/3419 https://github.com/NuGet/Home/issues/3419

after reading almost all comments this guy "dktechindia", mention NugetFix.Vsix and provided the link to download it:在阅读了这个人“dktechindia”的几乎所有评论后,提到了 NugetFix.Vsix 并提供了下载链接:

http://xvs.xamarin.com/patcheddrops/NuGetFixer.vsix http://xvs.xamarin.com/patcheddrops/NuGetFixer.vsix

this little tool fix my nuget package manager, now I tried to find more about this tool on internet but i was too tired and honestly i didnt try that hard, but it worked for me, hopefully my experience work for some of you too.这个小工具修复了我的 nuget 包管理器,现在我试图在互联网上找到更多关于这个工具的信息,但我太累了,老实说我没有那么努力,但它对我有用,希望我的经验对你们中的一些人也有用。

Anyways thanks for those who tried to help me, I hope this knowledge helps someone else.无论如何,感谢那些试图帮助我的人,我希望这些知识可以帮助其他人。

C ya ppl!!! C ya ppl!!!

暂无
暂无

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

相关问题 如何修复Xamarin android c#中的“找不到与给定名称(在'value'处与值'@ integer / google_play_services_version匹配)的资源” - How to fix“No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version)” in Xamarin android c# 找不到与给定名称匹配的资源(在'src'处,值为'@android:drawable / logo.png - No resource found that matches the given name (at 'src' with value '@android:drawable/logo.png 找不到与给定名称Styles.xml匹配的资源 - No resource found that matches the given name Styles.xml 没有找到与给定名称匹配的资源,我在哪里做错了? - No resource found that matches the given name, where I do something wrong? 在Xamarin.Android中找不到与给定名称匹配的资源(在'headerLayout'处) - No resource found that matches the given name (at 'headerLayout') in Xamarin.Android 设置Xamarin.Forms-“找不到与给定名称匹配的资源...” - Setup Xamarin.Forms - “No resource found that matches the given name…” 找不到与给定名称匹配的资源 - No resource found that matches the given names Visual Studio 2015 XAML资源字典错误 - Visual Studio 2015 XAML Resource Dictionary Error Xamarin-检索项目的父项时出错:找不到与给定名称'Theme.AppCompat.Light.DarkActionBar'匹配的资源 - Xamarin - Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar' 如何在Visual Studio 2015中使用资源文件 - How to use a resource file in Visual Studio 2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM