android - GoogleService failed to initialize, status: 10, Missing an expected resource: In Andorid -


signed apk getting below error

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. 

when run same code dubug.apk working fine.

below build.gradle file

dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.android.support:design:23.0.1' compile 'com.android.support:cardview-v7:23.0.1' compile 'com.android.support:recyclerview-v7:23.0.1' compile 'com.google.android.gms:play-services-location:8.4.0' compile 'com.google.android.gms:play-services-gcm:8.4.0' compile 'com.google.android.gms:play-services-maps:8.4.0' compile 'com.google.android.gms:play-services-analytics:8.4.0' }}apply plugin: 'com.google.gms.google-services'' 

anyone has faced same problem . please can me in this

you have miss add google-service.json file. know have created app on google developer there need download google-service.json file , put app folder

step putting google-service.json app folder:

1) in android studio double tap shift button , search terminal  2) $ mv path-to-download/google-services.json app/ ubuntu/mac os  3) google-service.json use generate file button link  

https://developers.google.com/identity/sign-in/android/start-integrating

for more detail please refer below link googleservice failed initialize


Comments