2017-02-02 25 views
0

我正在通过Xamarin在Visual Studio中开发一个应用程序,并且在第一次尝试时遇到以下错误:Xamarin.Forms:找不到与给定名称匹配的资源('value'值为'@ integer/google_play_services_version')

找不到与指定名称匹配的资源('value'值为'@ integer/google_play_services_version')。

请安装软件包:'SDK Base'可在SDK安装程序中使用。

在Stack Overflow中甚至在Xamarin论坛中都被问到了很多。例如以下链接:

How to fix "No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')"

https://forums.xamarin.com/discussion/47224/no-resource-found-that-matches-the-given-name-with-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#

,但没有人有一个可靠的,正确的答案。

有没有人可以帮我解决这个错误?

在此先感谢!基于消息

+0

它应该在构建时自动添加到清单中。你在你的项目中安装了哪些NuGet或组件? – Cheesebaron

+0

什么都没有,我只是试图建立由向导创建的模板项目,当你想创建一个新项目 –

+0

检查模板附带的包 – Cheesebaron

回答

0

嗯,当我删除Visual Studio 2015 Update 3并安装新版本的Visual Studio 2017企业版时,我没有再提到这些问题了。看来,新发布的Visual Studio版本足够聪明,可以为我找到并管理所有这些软件包!

0

请安装包: 'GPS基地' 提供的SDK安装程序。

我建议您确保您的Android SDK管理器中安装了Google Play服务。在VS Tools-> Android-> Android SDK Manager中将打开Android SDK Manager。向下滚动到“Extras”部分,查找Google Play服务并确保它已安装。实际上,我会确保所有Google Play XXX软件包都与Google存储库一起安装。

+0

嗨jgoldberger,我安装了SDK Manager的额外部分中提供的所有软件包,但它仍然有同样的错误。如果您查看此链接:https://forums.xamarin.com/discussion/47224/no-resource-found-that-matches-the-given-name-with-value-integer-google-play-services-version ,你可以看到这个错误的来源仍然是未知的。 –

+0

出现在错误列表中的其他一些错误是:找不到与给定名称匹配的资源:attr'colorPrimaryDark'。或找不到与指定名称'Theme.AppCompat.Light.NoActionBar'相匹配的资源。 : - | –

相关问题