如何修复“找不到与给定名称匹配的资源(在“值"处,值为“@integer/google_play_services_version)"在 Xamarin android c# 中 [英] How to fix"No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version)" in Xamarin android c#

查看:35
本文介绍了如何修复“找不到与给定名称匹配的资源(在“值"处,值为“@integer/google_play_services_version)"在 Xamarin android c# 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

我在 AndroidManifest.xml 中为谷歌地图插入了这些行,但出现此错误:

I inserted these line in AndroidManifest.xml for google map, but am getting this error:

"未找到与给定名称匹配的资源(在 'value' 处,值'@integer/google_play_services_version)"

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

我该如何解决这个问题?

How can I solve this?

推荐答案

基本上这意味着自动生成的 Resources.designer.cs 文件中缺少 google_play_services_version 的密钥.在安装 GPS 包和构建项目时,这应该由 Google Play 服务 (GPS) 库添加到清单中.您是否安装了 Xamarin.GooglePlayServices.Maps 包?

Basically this means that the key for google_play_services_version is missing from the auto generated Resources.designer.cs file. This should be added to the manifest by the Google Play Services (GPS) library when install the GPS package and build the project. Have you installed the Xamarin.GooglePlayServices.Maps package?

这篇关于如何修复“找不到与给定名称匹配的资源(在“值"处,值为“@integer/google_play_services_version)"在 Xamarin android c# 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆