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

For anyone encountering this issue using Android Studio and/or Gradle, you just need to make sure that you have the right dependency in your grade file. Again, do NOT hardcode this value into a versions.xml file..

Gradle eg.

dependencies {
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.google.android.gms:play-services-gcm:7.5.0'
}

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

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

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.

enter image description here

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


Install and configure the Google Play services SDK properly. You don't need to hard code that value.

  • Add Google Play services as an Android library project.

I have found that the play services libproject has to be imported onto the same physical drive as your project. (check the 'Copy projects into workspace' checkbox when you import)