我遵循这个教程:https://developers.google.com/maps/documentation/android/start#overview关于如何在Android SDK中将Google Maps添加到应用程序中。
我唯一的问题似乎是在这段时间内(我已经做了所有其他的事情,没有错误):
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
但我仍然收到相同的错误。有什么需要帮忙的吗?
发布于 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
希望这能帮上忙。;)
发布于 2015-02-28 06:35:27
只需添加库引用,转到Propertes -> Android,然后添加库。

然后添加到你的AndroidManifest.xml中
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />发布于 2014-02-02 02:31:05
尝试按照本文档中提到的方式安装4.0.30:http://developer.android.com/google/play-services/setup.html
https://stackoverflow.com/questions/19879844
复制相似问题