Cordova ';爱奥尼亚·科尔多瓦打造安卓';出错

Cordova ';爱奥尼亚·科尔多瓦打造安卓';出错,cordova,ionic-framework,Cordova,Ionic Framework,我正在发布ionic应用程序,但我无法构建它。何时给出此错误 System cannot find the path specified [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 prov

我正在发布ionic应用程序,但我无法构建它。何时给出此错误

System cannot find the path specified
[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.
我尝试构建一个项目

ionic cordova build --release android
它给出了这个错误

System cannot find the path specified
[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.
  • 你安装了Android Studio吗
  • 您是否安装了cordova-gnpm
  • 您是否安装了爱奥尼亚-gnpm
还要确保您完成了所有这些:

(尤其是正确的SDK是必不可少的)

确保已运行
cordova prepare android
可能是缺少android平台

确保将android平台添加到您的爱奥尼亚项目中

 -ionic cordova platform add android 
 - ionic cordova build android --prod --release

这不是一个离子错误。它发生在系统变量中没有任何路径设置的情况下。您必须遵循此链接。