Trying to build an android project on windows 7


#1

Hello, everyone! I have such type error
What does mean?

ionic build android
Running build task…
Building platform android
Running command: d:****\platforms\android\cordova\build.bat
[Error: An error occurred while listing Android targets]
Error: d:**\platforms\android\cordova\build.bat: Command failed with exit code 2
at ChildProcess.whenDone (C:\Users*
\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Process.ChildProcess._handle.onexit (child_process.js:820:5)

And it look like it is running but nothing happening anymore


#2

Check out this stack overflow question it may help point you in the right direction.

This question references Ubuntu but some of the answers contain hints for cordova check-dependencies command that may expose the issue