Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

no resource found @integer/google_play_services_version whats this? [duplicate]

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

like image 848
Abhi Avatar asked Jun 20 '14 10:06

Abhi


1 Answers

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

like image 173
Shailendra Madda Avatar answered Oct 08 '22 05:10

Shailendra Madda