Atul Sharma
Atul Sharma

Reputation: 10645

Error While building APK ionic/cordova Command failed with exit code ENOENT

While building andoird app using commands

ionic build android or cordova build androidcommand terminates with Error: cmd: Command failed with exit code ENOENT

enter image description here

Previously it was working fine.. I made some changes in PATH variable and after that it's giving the error.

I reinstalled the node, uninstalled and reinstalled cordova.

ionic platform add android giving platform already added.

Any way to get the exact error or how to solve this. I don't remember my old PATH variable values.

Upvotes: 2

Views: 877

Answers (1)

Atul Sharma
Atul Sharma

Reputation: 10645

Figured out the problem...

Adding C:\Windows\System32 to PATH variable solved the issue.

Upvotes: 1

Related Questions