hbmartin / cordova-plugin-firebase-realtime-database

Cordova plugin for Google Firebase
13 stars 8 forks source link

Failed to apply plugin [id 'com.google.gms.google-services'] > For input string: "+" #8

Open vvsraju04 opened 7 years ago

vvsraju04 commented 7 years ago

After adding cordova-plugin-firebase-realtime-database to project , getting following error while building the project,

cordova build android ANDROID_HOME=C:\Users\guest\Downloads\tools_r25.2.3-windows JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121 Subproject Path: CordovaLib handscan-build-extras

FAILURE: Build failed with an exception.

  • Where: Script 'C:\Users\guest\Documents\cordova_projects\myapp\platforms\android\cordova-plugin-firebase-realtime-database\myapp-build-extras.gradle' line: 11

  • What went wrong: A problem occurred evaluating root project 'android'. BUILD FAILED

Total time: 1.9 secs

Failed to apply plugin [id 'com.google.gms.google-services'] For input string: "+"

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
vvsraju04 commented 7 years ago

content of C:\Users\guest\Documents\cordova_projects\myapp\platforms\android\cordova-plugin-firebase-realtime-database\myapp-build-extras.gradle

cdvPluginPostBuildExtras.add({ println 'handscan-build-extras' buildscript { repositories { mavenCentral() } dependencies { classpath 'com.google.gms:google-services:3.0.0' } } apply plugin: 'com.google.gms.google-services' })

ashishradadia commented 7 years ago

Then after i got below error

Error: cmd: Command failed with exit code 1 Error output: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.