我收到“错误:找不到与给定名称匹配的资源(值为”@ 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)"

查看:1262
本文介绍了我收到“错误:找不到与给定名称匹配的资源(值为”@ integer / google_play_services_version“的值)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ionic Framework / cordova上开发一个应用程序,当我尝试cordova run android时,我得到:

I'm developing an app on Ionic Framework/cordova, and when I try "cordova run android" I get this:


错误:找不到与给定名称匹配的资源(值为
,值为@ integer / google_play_services_version)

"Error: No resource found that matches the given name (at value with value @integer/google_play_services_version)"

真的不知道发生了什么,我试图设置一个固定值的值(我知道不是最好的解决方案),并且问题仍然存在。

I don't really know what is happening, I tried to set the value with a fixed value (I know is not the best solution), and the problem continues.

谢谢

推荐答案

将google-play services_lib库项目复制到您的工作空间或将库项目导入您的eclipse。

Copy the google-play services_lib library project to your workspace OR Import the library project to your eclipse.

点击文件>导入,选择Android>将现有Android代码导入Workspace ,然后浏览工作区导入库项目。

Click File > Import, select Android > Existing Android Code into Workspace, and browse the workspace import the library project.

右键单击您的Android项目。转到属性。在左侧面板上选择Android。单击添加并浏览库项目。选择相同。点击确定并应用。

Right click on your android project. Goto properties. Choose Android on the left panel. Click on Add and browse the library project. Select the same. Click ok and apply.

签出此链接以供参考。 http://developer.android.com/tools/projects/projects- eclipse.html#ReferencingLibraryProject

checkout this link for reference. http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject

这篇关于我收到“错误:找不到与给定名称匹配的资源(值为”@ integer / google_play_services_version“的值)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆