首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >是否将Google Play服务版本添加到您的应用程序清单中?

是否将Google Play服务版本添加到您的应用程序清单中?
EN

Stack Overflow用户
提问于 2013-11-10 01:28:19
回答 13查看 189.9K关注 0票数 88

我遵循这个教程:https://developers.google.com/maps/documentation/android/start#overview关于如何在Android SDK中将Google Maps添加到应用程序中。

我唯一的问题似乎是在这段时间内(我已经做了所有其他的事情,没有错误):

代码语言:javascript
复制
Edit your application's AndroidManifest.xml file, and add the following declaration within the

 <application> element. This embeds the version of Google Play services that the app was compiled with.

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

The error is:
   No resources found that match the given name (at 'value' with value '@integer/    
   google_play_services_version').

我尝试遵循这个人的解决方案来解决相同的问题:Google Play Services Library update and missing symbol @integer/google_play_services_version

但我仍然收到相同的错误。有什么需要帮忙的吗?

EN

回答 13

Stack Overflow用户

回答已采纳

发布于 2013-11-19 18:03:50

可能是你的库没有正确地链接到项目,或者你的google-play-services库版本较旧,所以出现了冲突,Eclipse变得愚蠢。:S

不,您不需要在integers.xml中添加任何内容。当您正确地将Google-play-services库链接到您的项目参考时,将会找到android:value="@integer/google_play_services_version",您就可以开始使用了。当您将库添加到您的项目中时,只需再做一次干净有趣的Eclipse环境清理工作即可。

如果你在某个地方硬编码了这个号码,当下一个游戏版本到来时,你需要更新它。如果您忘记了这一点,您将再次花费时间寻找bug..:S

希望这能帮上忙。;)

票数 100
EN

Stack Overflow用户

发布于 2015-02-28 06:35:27

只需添加库引用,转到Propertes -> Android,然后添加库。

然后添加到你的AndroidManifest.xml

代码语言:javascript
复制
   <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
票数 7
EN

Stack Overflow用户

发布于 2014-02-02 02:31:05

尝试按照本文档中提到的方式安装4.0.30:http://developer.android.com/google/play-services/setup.html

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19879844

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档