我收到“错误:未找到与给定名称匹配的资源(值 @integer/google_play_services_version)";

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

点击 File > Import,选择 Android > Existing Android Code into 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