Error: execution completed for task: app: processDebugGoogleServices

I have a bug in Android Studio. New application form, I add "build.gradle (project)"

 dependencies {
     classpath 'com.android.tools.build:gradle:2.0.0-alpha9'
     classpath 'com.google.gms: google-services: 2.0.0-alpha9'
 }

And in "build.gradle (app)"

dependencies {
     compile FileTree (dir: 'libs', include: ['* .jar'])
     compile 'com.android.support:appcompat-v7:23.0.1'
     compile 'com.android.support:design:23.0.1'

     // Dependency for Google Sign-In
     compile 'com.google.android.gms: play-auth-services: 8.4.0'
}

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

Compile and error:

"Error: execution completed for task: app: processDebugGoogleServices'. Com.google.gson.stream.MalformedJsonException: expected name on row 28, column 20"

I reinstalled Android Studio SDK, and always the same, any ideas?

+4
source share
2 answers

, Google .
apply plugin: 'com.google.gms.google-services' google-services.json ( )
JSON 28.
(, / - JSON).

+5

, "google-services.json", . OS X TextEdit , , UltraEdit . , , .

0

Source: https://habr.com/ru/post/1627191/


All Articles