i have cordova app android , ios, , trying add fcm can send push notification. have followed setup instructions on site multiple times , continue same build error.
here error when run cordova build
failure: build failed exception. * where: build file 'c:\users\me\workspace\app\platforms\android\build.gradle' line: 326 * went wrong: problem occurred evaluating root project 'android'. > failed apply plugin [id 'com.google.gms.google-services'] > input string: "+"
this on last line of build.gradle file apply plugin: 'com.google.gms.google-services'
, setup instruction says do.
i have made account, got package name androidmanifest.xml
, added google-services.json
main in android project, , added 3 lines in build.gradle
file, continue error.
what doing wrong? help.
i had similar issues.
my fix edit ./platforms/android/project.properties
i changed + 10.0.1 on google services. (make sure sdk up-to-date)
ie:
cordova.system.library.1=com.google.android.gms:play-services-analytics:+
to
cordova.system.library.1=com.google.android.gms:play-services-analytics:10.0.1
do build , worked.
Comments
Post a Comment