Hi all,
today I had this problem, when I try to build my android app the CLI said:
Running command: /home/francesco/mce/platforms/android/cordova/build
execvp(): Permission denied
ERROR building one of the platforms: Error: /home/francesco/mce/platforms/android/cordova/build: Command failed with exit code EACCES
You may not have the required environment or OS to build this project
Error: /home/francesco/mce/platforms/android/cordova/build: Command failed with exit code EACCES
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.EventEmitter.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:795:12)
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
and:
This is a common PhoneGap problem.
Most of the time it's got to do with permissions on the build folder and script file.
Try using: chmod a+x on them.
I create a new project with ionic, paste the folders: img, js, css, templates in the new project and it run now…
I don’t know what was the problem but now it isn’t a problem
Thankssssssss
another thing to try when you have problems in build is to remove and re-add the new platforms. I often have to do this whenever a new version of ionic comes out. Although this sounds like it is more to do with the permissions on that folder.