找不到资源@ integer/google_play_services_version这是什么?

Abh*_*bhi 16 android metadata android-manifest google-play-services

我必须将Inmobi skd集成到我的项目中我已经浏览了这个https://www.inmobi.com/support/integration/23817448/22051163/android-sdk-integration-guide/教程,当我提到androidmenidfest.xml文件时它给出错误找不到与给定名称匹配的资源(在'value'处,值为'@ integer/google_play_services_version').

为了解决这个问题我已经提到这个我得到了"错误:没有找到匹配给定名称的资源(值为@ integer/google_play_services_version)"教程但它对我没有帮助..请帮帮我我是新手android ..提前谢谢

Shy*_*dda 23

正如Simple Plan所说的那样:

在Eclipse中:

Eclipse - > import - >现有的android代码 - >浏览 - >导航到google-play-services_lib文件夹(android-sdk/extras/google/google_play_services/libproject).

然后,选择你的项目 - >右键单击 - >属性 - > android - >库,添加 - >选择刚导入的项目 - >确定

更新:

在Android Studio中:

只需添加此行build.gradle并单击"同步"即可

编译'com.google.android.gms:play-services:8.4.0'

并且还要确保在build.gradle的末尾添加这一行(我不知道为什么把它放在最后(而不是在开头)解决了错误.)

申请插件:'com.google.gms.google-services'

有关更多信息,请参阅链接

  • 确保您的项目和库应该在同一个工作区中 (2认同)