

NOTE: In order to find out which folder was having the permissions problem, I had to use this command: sudo build -verbose Solution is to simply wrap the path in quotes like so: [Sandis-Macbook-Pro:Users sandi$ sudo chmod -R 777 "/Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle" Note that my Android app is named "Android Studio.app" (with a space in the name). I was using this command: [Sandis-Macbook-Pro:Users sandi$ sudo chmod -R 777 /Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle Įrror: spawn Vaghela's answer above helped me somewhat. I was using Cordova to run my Hybrid app on my Android device, and I got this error twice during the unsuccessful build. It will return to you the path that requires the chmod +x Use the verbose when you make your cordova build: cordova build -verbose It will take some time to apply permission. If this does not solve your problem then its probably issue of permission in your user profile directory. Hit this command sudo chmod -R a+rwx /appfolder Sudo chmod -R 777 /Applications/Android\ Studio\ 3.0\ Preview.app/Contents/gradle This is Permission Error While Building App I searched in google but no solution works for me. OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS While i am doing ionic build android i am getting this error
