尝试编译应用时出错。
它是一个非常简单的应用程序,似乎离子部分很好地解决了。
我收到以下错误:
[07:35:18] lint finished in 7.39 s
ANDROID_HOME=C:\Users\USER\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
El sistema no puede encontrar la ruta especificada.
Error: cmd: Command failed with exit code 1
[ERROR] An error occurred while running cordova build android --release (exit code 1).
运行cordova build android --release --verbose
后,我明白了:
...bunch of logs
This app does not have additional resource files defined
Prepared android project successfully
No scripts found for hook "after_prepare".
No scripts found for hook "before_compile".
ANDROID_HOME=C:\Users\USER\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121
Running command: cmd "/s /c ""C:\Program Files\Android\Android Studio\gradle\gradle-2.4\bin\gradle" -p C:\Users\USER\WebStormProjects\AppProjectFolder\platforms\android wrapper -b C:\Users\USER\WebStormProjects\AppProjectFolder\platforms\android\wrapper.gradle""
El sistema no puede encontrar la ruta especificada.
Command finished with error code 1: cmd /s /c ""C:\Program Files\Android\Android Studio\gradle\gradle-2.4\bin\gradle" -p C:\Users\USER\WebStormProjects\AppProjectFolder\platforms\android wrapper -b C:\Users\USER\WebStormProjects\AppProjectFolder\platforms\android\wrapper.gradle"
Error: cmd: Command failed with exit code 1
当我查看文件夹C:\Program Files\Android\Android Studio\gradle\gradle-2.4\bin\gradle
时,它不存在
唯一存在的是C:\Program Files\Android\Android Studio1\gradle\gradle-4.1\bin
我认为这与此有关,但我不知道如何更改文件夹
提前谢谢大家