运行子流程cordova时发生错误

时间:2019-06-23 20:02:04

标签: javascript cordova

我运行命令ionic cordova build android并收到错误消息: enter image description here

我的.bashrc文件具有:

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
PATH=$PATH:$JAVA_HOME/bin

export ANDROID_HOME=/home/devkd/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

扑灭java -versoin

java -version 
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)

您能告诉我需要更正什么以便我得到apk文件吗? 也许您需要降低Java的版本,但是如何?我尝试更改Java地址.bashrc,但未成功。请协助解决错误!最近从Windows移至Ubuntu 18.04

0 个答案:

没有答案