加入谷歌游戏服务版本的应用程序的清单? [英] Adding Google Play services version to your app's manifest?
问题描述
我下面这个教程:<一href="https://developers.google.com/maps/documentation/android/start#overview">https://developers.google.com/maps/documentation/android/start#overview 如何添加谷歌地图的应用程序在Android SDK中。
I'm following this tutorial: https://developers.google.com/maps/documentation/android/start#overview on how to add Google Maps to an app within the Android SDK.
我似乎有唯一的问题是,在这一点(我已经做了一切,没有任何错误):
The only problem I seem to be having is during this bit (I've done everything else with no errors):
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').
我试图按照此人的解决同样的问题:<一href="http://stackoverflow.com/questions/19843784/google-play-services-library-update-and-missing-symbol-integer-google-play-serv">Google播放服务资料库的更新和失踪@符号整数/ google_play_services_version
但我仍然得到同样的错误。任何帮助吗?
but I'm still getting the same error. Any help please?
推荐答案
有可能是你的库没有链接到正确的项目,或者你有旧的谷歌播放服务库版本,所以出现冲突和Eclipse傻了.. :•
It is probably that your library is not linked to project properly or that you have older google-play-services library version so conflict appears and Eclipse got stupid.. :S
没有,你不需要在integers.xml添加任何东西。当您正确谷歌播放-服务库链接到您的项目引用安卓值=@整数/ google_play_services_version
会被发现,你准备好了。当您添加库到您的项目只是做一较为干净太有趣了Eclipse环境中扫出正确的事情。
No you don't need to add anything in integers.xml. When you link properly Google-play-services library to your project reference android:value="@integer/google_play_services_version"
will be found and you are ready to go. When you add library to your project just do one more clean so funny Eclipse environment sweep-out things properly.
如果你很难code的地方这个数字时,旁边的打版来了,你就需要更新它。如果你忘了,你将再次花费时间寻找错误..:•
If you hardcode somewhere this number when next play version come you would need to update it. And if you forget that, you will spend time again looking for bug.. :S
希望它帮助。 ;)
这篇关于加入谷歌游戏服务版本的应用程序的清单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!