安卓错误 : Google play service version

标签 android eclipse google-play-services

我在使用 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'

事实上,如果我尝试管理项目的库,我会得到: Libraries situation

似乎已经导入了 google play 库,我无法添加新库。

我想我最后的机会是手动添加字符串

 compile 'com.google.android.gms:play-services:4.4.2@aar'

到我的 build.grade 指定 in this answer但我不知道在哪里可以找到该文件,也不知道这是否能解决我的问题。

如何修复错误?谢谢!

最佳答案

您是否已经通过 Google SDK 管理器安装了 Google Play 服务? 对我来说看起来像以下内容:

Google Play services added as a Library

这是我在整个设置中所做的,使用 Google Maps Android V2 api

Google Maps API setup, Android V2 API

关于安卓错误 : Google play service version,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21944990/

相关文章:

android - 由于错误 2,GooglePlayServices 不可用

java - SharedPreferences 不保存文本值

java - Android 是否像 iPhone 一样在顶部栏中有一个互联网状态转圈?

android - LayoutInflater attachToRoot 参数是什么意思?

java - 如何从 eclipse 插件调用终端命令

android - 以下类无法实例化 : - com. google.android.gms.plus.PlusOneButton

java - 如何在具有抽屉式导航和 Web View 的应用程序中启用返回上一页

java - Eclipse编辑java文件并在原文件夹下运行

eclipse - 如何在 Eclipse (CDT) 的 Outline View 中进行全面搜索

android - 更新 firebase 11 对 Android Gradle 的依赖