Updated the hooks directory to have execute permissions
running cordova build android
Running command: "C:\Program Files\nodejs\node.exe" F:\ionic\myApp\hooks\after_prepare\010_add_platform_class.js F:\ionic\myApp
add to body class: platform-android
Running command: F:\ionic\myApp\platforms\android\cordova\build.bat
ERROR building one of the platforms: Error: F:\ionic\myApp\platforms\android\cordova\build.bat: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: F:\ionic\myApp\platforms\android\cordova\build.bat: Command failed with exit code 2
at ChildProcess.whenDone (C:\Users\svkaushik17\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
請讓我知道是否有任何依賴關係需要安裝以構建應用程序。無法構建離子應用程序,出現錯誤:命令失敗,退出代碼爲2
我有Ionic網站來構建應用程序。
$ ionic platform add android
$ ionic build android
我也安裝了AVD管理器。