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

前端 未结 7 448
失恋的感觉
失恋的感觉 2020-12-29 01:27

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 give

7条回答
  •  心在旅途
    2020-12-29 02:02

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

提交回复
热议问题