我在使用 Eclipse 开发 android 应用程序时遇到了这个流行的问题:
error: Error: No resource found that matches the given name (at 'value' with value '@integer/
google_play_services_version').
所以我尝试按照指定的方式导入 google play 库 here但我有这个错误:
Invalid project description.
C:\Users\Max\workspaceAndroid\google-play-services_lib overlaps the location of another project: 'google-play-services_lib'
事实上,如果我尝试管理项目的库,我会得到:
似乎已经导入了 google play 库,我无法添加新库。
我想我最后的机会是手动添加字符串
compile 'com.google.android.gms:play-services:4.4.2@aar'
到我的 build.grade
指定 in this answer但我不知道在哪里可以找到该文件,也不知道这是否能解决我的问题。
如何修复错误?谢谢!
最佳答案
您是否已经通过 Google SDK 管理器安装了 Google Play 服务? 对我来说看起来像以下内容:
这是我在整个设置中所做的,使用 Google Maps Android V2 api
关于安卓错误 : Google play service version,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21944990/