如何修复 "No resource found that matches the given name (at 'value' 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')"
我在 Visual studio 2015 年构建我的 Android 应用程序项目时出现以下错误。
No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')
这些行位于:
obj\Debug\android\manifest\AndroidManifest.xml
AndroidManifest file
.
里面有3个完整的
我已经从 SDK Manager
下载了 google 播放服务。
我应该参考我的解决方案吗?
我已经 Xamarin.GooglePlayServices.Base, Xamarin.GooglePlayServices.Basement, Xamarin.GooglePlayServices.Maps
引用了。
谢谢。
您已在 value
文件夹中创建 integer.xml
文件并将 Integer
定义到该位置,它将解决您的问题。
尝试清理所有并检查 ALL obj
下的内容是否已被删除,然后执行全部构建。
如果这不起作用:
我会尝试删除 ~GooglePlayServices~
nugets/references 并重新添加 just Xamarin.GooglePlayServices.Maps
nuget 这将引入 ~Basement
和 ~Base
个库。
您最终应该生成一个仅引用 google_play_services_version
的清单,并且应该从 Debug/android/XXX/YYYYYY/ZZZZZ/R.java:
中获取该资源
即
public static final int google_play_services_version=0x7f070000;
我添加了几个新包。其中一个包是错误的原因。我必须一一检查并找出导致错误的那个。我只需删除该软件包即可解决错误。
我在 Visual studio 2015 年构建我的 Android 应用程序项目时出现以下错误。
No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')
这些行位于:
obj\Debug\android\manifest\AndroidManifest.xml
AndroidManifest file
.
我已经从 SDK Manager
下载了 google 播放服务。
我应该参考我的解决方案吗?
我已经 Xamarin.GooglePlayServices.Base, Xamarin.GooglePlayServices.Basement, Xamarin.GooglePlayServices.Maps
引用了。
谢谢。
您已在 value
文件夹中创建 integer.xml
文件并将 Integer
定义到该位置,它将解决您的问题。
尝试清理所有并检查 ALL obj
下的内容是否已被删除,然后执行全部构建。
如果这不起作用:
我会尝试删除 ~GooglePlayServices~
nugets/references 并重新添加 just Xamarin.GooglePlayServices.Maps
nuget 这将引入 ~Basement
和 ~Base
个库。
您最终应该生成一个仅引用 google_play_services_version
的清单,并且应该从 Debug/android/XXX/YYYYYY/ZZZZZ/R.java:
即
public static final int google_play_services_version=0x7f070000;
我添加了几个新包。其中一个包是错误的原因。我必须一一检查并找出导致错误的那个。我只需删除该软件包即可解决错误。