Error spawn EACCES

I tried “ionic hooks add” command for solving this but not able to solve.
When I’m trying to build android using “ionic build android” command it gives error.
I don’t know why it’s happening.

Can anyone help me.

any updates on this?

I don’t understand the problem. What happens when exactly? Please also include the complete error messages and the output of ionic info. Thanks.

i fixed the issue with changing permissions, but i now get another error: ENOENT: no such file or directory, mkdir 'build/platforms/android/res/drawable’
when trying to build…

Ionic Info:
Cordova CLI: 6.5.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.8
OS: macOS Sierra
Node Version: v6.11.0
Xcode version: Xcode 8.3.3 Build version 8E3004b

Edit - got the Error: spawn EACCES error again

For me it was a problem of android sdk, i just remove my all old sdk and installed it again. So my problem was solved.
I think you should try it.

It was a problem because of android sdk.
I installed all sdk again and my problem was solved.
It working perfectly now.