com.google.android.gms:play-services-gcm:8.4.0 leads to error -


in project using following version of gcm library.

compile 'com.google.android.gms:play-services-gcm:7.8.0' 

now update in following version

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

but getting following error.

02-05 23:51:29.205 18410-18410/com.example.app e/gmpm: googleservice failed initialize, status: 10, missing expected resource: 'r.string.google_app_id' initializing google services.  possible causes missing google-services.json or com.google.gms.google-services gradle plugin. 02-05 23:51:29.205 18410-18410/com.example.app e/gmpm: scheduler not set. not logging error/warn. 02-05 23:51:29.238 18410-18452/com.example.app e/gmpm: uploading not possible. app measurement disabled 

please me solve issue.

i have configured project following too

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

.

 dependencies {     classpath 'com.android.tools.build:gradle:1.5.0'     classpath 'com.google.gms:google-services:1.3.0'       // note: not place application dependencies here; belong     // in individual module build.gradle files } 

newer versions of googleservices require json file contains configuration information app , account.

follow instructions provided here.

you might see better results upgrading latest build tools (as of 5 feb 2016):

buildtoolsversion "23.0.2" 

and

classpath 'com.android.tools.build:gradle:2.0.0-beta2' classpath 'com.google.gms:google-services:2.0.0-beta2' 

the new tools expect google-services plugin applied @ bottom of build file, shown in this example. fwiw, i'm building these settings , not seeing error.

additional information google-services.json file, troubleshooting tips, provided here.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -