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

Juan Manuel Masud picture Juan Manuel Masud · May 29, 2014 · Viewed 74.6k times · Source

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

"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.

Thanks in advance!

Answer

Jeremy picture Jeremy · Jun 11, 2015

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'
}