如何解决cordova构建失败

时间:2021-01-04 13:22:52

标签: android node.js cordova gradle sdk

D:\android\unkris>cordova build
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\TigerSPR\AppData\Local\Android\android-sdk (DEPRECATED)
Using Android SDK: C:\Users\TigerSPR\AppData\Local\Android\android-sdk
Starting a Gradle Daemon, 2 incompatible and 2 stopped Daemons could not be reused, use --status for details

BUILD SUCCESSFUL in 39s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app

FAILURE: Build failed with an exception.


* Where:
Build file 'D:\android\unkris\platforms\android\app\build.gradle' line: 256

* What went wrong:
A problem occurred evaluating project ':app'.
> Invalid revision: 30.0.0-preview

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s
Command failed with exit code 1: D:\android\unkris\platforms\android\gradlew cdvBuildDebug -b D:\android\unkris\platforms\android\build.gradle

0 个答案:

没有答案