我正在努力在ionic4中构建apk
这是最新版本的转储
✘ mixxx@mixxx-XPS ~/work/ghi/mob-app4 develop ● export PATH=$PATH:/home/mixxx/opt/gradle-4.10.2/bin
mixxx@mixxx-XPS ~/work/ghi/mob-app4 develop ● cd work/ghi/mob-app4
cd: no such file or directory: work/ghi/mob-app4
✘ mixxx@mixxx-XPS ~/work/ghi/mob-app4 develop ● ionic cordova build --release android
> ng run app:ionic-cordova-build --platform=android
Date: 2018-10-25T05:58:18.164Z
Hash: 5b016008676a6c57dce7
Time: 19443ms
chunk {common} common.js, common.js.map (common) 23.8 kB [rendered]
[...]
chunk {165} 165.js, 165.js.map () 5.15 kB [rendered]
> cordova build android --release
You have been opted out of telemetry. To change this, run: cordova telemetry on.
Android Studio project detected
ANDROID_HOME=/home/mixxx/opt/android-studio
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
studio
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
* Where:
Script '/home/mixxx/work/ghi/mob-app4/platforms/android/CordovaLib/cordova.gradle' line: 68
* What went wrong:
A problem occurred evaluating project ':CordovaLib'.
> No installed build tools found. Install the Android build tools version 19.1.0 or higher.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 6s
/home/mixxx/work/ghi/mob-app4/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
* Where:
Script '/home/mixxx/work/ghi/mob-app4/platforms/android/CordovaLib/cordova.gradle' line: 68
* What went wrong:
A problem occurred evaluating project ':CordovaLib'.
> No installed build tools found. Install the Android build tools version 19.1.0 or higher.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 6s
[ERROR] An error occurred while running subprocess cordova.
cordova build android --release exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.