Im trying to add google play API to my android game and i followed the instructions in their site.
I got this error in the emulator run, trying to solve it. (on my phone
Didn't specify what IDE you use?
- In case of gradle / Android studio you can check and configure in build.gradle
file, setting 1, as described here, other settings are not necessary and can be removed.
- In case of other IDE / Eclipse check project references and correlate jar file from lib folder with @integer/google_play_services_version
value from sdk project.
Check the following settings:
in build.gradle
dependencies {
compile 'com.google.android.gms:play-services-base:7.5.0@aar'
in AndroidManifest.xml
, usually should add in your project manifest file
in res/values/version.xml
from referenced sdk project or included in your own project manifest file
7571000
To find out what version can be used in build.gradle
or to download specific version of google play services sdk
, check here and here.