cordova build Command failed with exit code EACCES

This is a common PhoneGap problem.

Most of the time it has to do with permissions on the build folder and script file.

Try using: chmod a+x on them.


You should add permission to two files:

Go to Cordova root directory and run:

chmod a+x platforms/android/gradlew
chmod a+x platforms/android/cordova/build

For some reason build is not currently an executable file. To fix that, open the terminal and enter the following commands:

$ cd <your-project-directory>/platforms/android/cordova
$ chmod a+x build