【发布时间】:2018-02-25 06:28:32
【问题描述】:
[WARN] 不为项目类型执行 Ionic 构建:ionic1。
ionic cordova 准备 android 科尔多瓦准备机器人 运行命令:“C:\Program Files\nodejs\node.exe” C:\Users\pini\Desktop\Drivercheckcall\hooks\after_prepare\010_add_platfo rm_class.js C:\Users\pini\Desktop\Drivercheckcall
添加到body类:platform-android 运行命令:“C:\Program Files\nodejs\node.exe” C:\Users\pini\Desktop\Drivercheckcall\hooks\after_prepare\020_remove_sas s_from_platforms.js C:\Users\pini\Desktop\Drivercheckcall
cordova 构建 android --release × 运行命令 - 失败! [ERROR] 运行 cordova build android --release 时出错(退出代码 1):
Running command: "C:\Program Files\nodejs\node.exe"
C:\Users\pini\Desktop\Drivercheckcall\hooks\after_prepare\010_add_platform_class.js
C:\Users\pini\Desktop\Drivercheckcall
add to body class: platform-android
Running command: "C:\Program Files\nodejs\node.exe"
C:\Users\pini\Desktop\Drivercheckcall\hooks\after_prepare\020_remove_sass_from_platforms.js
C:\Users\pini\Desktop\Drivercheckcall
ANDROID_HOME=C:\Users\pini\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_144
Subproject Path: CordovaLib
Starting a Gradle Daemon (subsequent builds will be faster)
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use
Task.doLast(Action) instead.
at build_yewq1sjt6kzw92w3qmfn4wt0.run(C:\Users\pini\Desktop\Drivercheckcall\platforms\android\build.gradle:1
39)
FAILURE: Build failed with an exception.
* Where:
Script
'C:\Users\pini\Desktop\Drivercheckcall\platforms\android\phonegap-plugin-push\DriverCheckCall-push.gradle' line:
38
* What went wrong:
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
> For input string: "+"
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 23.062 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* Where:
Script
'C:\Users\pini\Desktop\Drivercheckcall\platforms\android\phonegap-plugin-push\DriverCheckCall-push.gradle' line:
38
* What went wrong:
A problem occurred evaluating root project 'android'.
> Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
> For input string: "+"
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
【问题讨论】:
标签: ionic-framework android-sdk-tools