简体   繁体   English

找不到与@ integer / google_play_service_version匹配的资源

[英]No Resource found that matches @integer/google_play_service_version

I have imported google-play-services_lib to my project but getting error @integer/google_play_services_version in AndroidManifest.xml 我已经将google-play-services_lib导入到我的项目中,但是在AndroidManifest.xml中收到错误@ integer / google_play_services_version

Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').AndroidManifest.xml

This is the code in AndroidManifest.xml 这是AndroidManifest.xml中的代码

<meta-data 
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version"/>

I have added its Properties also. 我还添加了它的属性 Yet it cannot be resolved. 但这还无法解决。

http://i.stack.imgur.com/6zJbR.png http://i.stack.imgur.com/6zJbR.png

I am new to android and I have checked most of the possible solutions but didn't work for me. 我是android的新手,我已经检查了大多数可能的解决方案,但不适用于我。

It is true that Eclipse is not encouraged by google. 的确,谷歌不鼓励Eclipse。 But they still have setup guide at this official document https://developers.google.com/android/guides/setup explains how to setup google play for eclipse. 但是他们仍然在此官方文档中提供安装指南https://developers.google.com/android/guides/setup解释了如何设置Google Play进行月食。 Basically: 基本上:

Copy the library project at /extras/google/google_play_services/libproject/google-play-services_lib/ to the location where you maintain your Android app projects. 将位于/ extras / google / google_google_play_services / libproject / google-play-services_lib /的库项目复制到维护Android应用程序项目的位置。

Import the library project into your Eclipse workspace. 将库项目导入到Eclipse工作区中。 Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it. 单击文件>导入,选择Android>现有Android代码到Workspace,然后浏览到库项目的副本以将其导入。

In your app project, reference Google Play services library project. 在您的应用项目中,引用Google Play服务库项目。 See Referencing a Library Project for Eclipse for more information on how to do this. 有关如何执行此操作的更多信息,请参见引用Eclipse的库项目。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android 资源链接在生成的清单中的 google_play_service_version 失败 - Android resource linking failed at google_play_service_version in generated menifest 如何修复“找不到与给定名称匹配的资源(&#39;value&#39;与值&#39;@ integer / google_play_services_version&#39;)” - How to fix “No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')” 找不到与给定名称匹配的资源(在“值”处与值“ @ integer / google_play_services_version”) - No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version') No Gradle - 找不到与给定名称匹配的资源(&#39;value&#39;的值为&#39;@ integer / google_play_services_version&#39;) - No Gradle - No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version') 如何修复Xamarin android c#中的“找不到与给定名称(在&#39;value&#39;处与值&#39;@ integer / google_play_services_version匹配)的资源” - How to fix“No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version)” in Xamarin android c# 我收到“错误:找不到与给定名称匹配的资源(值为@integer/google_play_services_version)” - I'm getting "Error: No resource found that matches the given name (at value with value @integer/google_play_services_version)" 未找到与给定名称匹配的资源(值与值 @integer/google_play_services_version)”- Visual Studio 2015 更新 3 - No resource found that matches the given name (at value with value @integer/google_play_services_version)” - Visual Studio 2015 Update 3 在Android Eclipse中出现错误“找不到与给定名称匹配的资源(在&#39;value&#39;值&#39;@integer/google_play_services_version&#39;)” - Getting error "No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')" in Android Eclipse Android:找不到Admob资源@ integer / google_play_services_version - Android: Admob resource not found @integer/google_play_services_version 未找到Google Play服务资源 - Google play service resource not found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM