no resource found @integer/google_play_services_ve

2019-02-21 12:19发布

问题:

This question already has an answer here:

  • Google Play Services Library update and missing symbol @integer/google_play_services_version 24 answers

I have to Integrate Inmobi skd into my project I have gone through this https://www.inmobi.com/support/integration/23817448/22051163/android-sdk-integration-guide/ tutorial and when I mentioned to androidmenidfest.xml file it gives an error No resource found that matches the given name (at 'value' with value '@integer/ google_play_services_version').

to resolve this I have referred this I'm getting "Error: No resource found that matches the given name (at value with value @integer/google_play_services_version)" tutorial but it doesn't help me.. Please help me I am newbie in android.. Thanks in advance

回答1:

As told by Simple Plan do like:

In Eclipse:

Eclipse -> import -> existing android code -> browse -> navigate to google-play-services_lib FOLDER (android-sdk/extras/google/google_play_services/libproject).

then, select your project--> right click -> properties -> android -> libraries, add -> select the project you just imported -> OK

UPDATE:

In Android Studio:

Simply add this line to build.gradle and click on Sync

compile 'com.google.android.gms:play-services:8.4.0'

And also make sure to add this line at end of the build.gradle (I have no clue why putting this at the end (and not at the beginning ) solves the error.)

apply plugin: 'com.google.gms.google-services'

For more info refer this link