[英]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.