getting Error: spawn EACCES while ionic build android in ubuntu 14.04

ramya picture ramya · Aug 4, 2016 · Viewed 11.9k times · Source

i developed one project in ionic2

while i am doing ionic build android i am getting this error

enter image description here

my ionic info is

Cordova CLI: 6.3.0

Ionic Framework Version: 2.0.0-beta.10

Ionic CLI Version: 2.0.0-beta.36

Ionic App Lib Version: 2.0.0-beta.19

OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS

Node Version: v4.4.7

I searched in google but no solution works for me..

How can i fix this Bug?

Answer

Krunal Vaghela picture Krunal Vaghela · Jun 8, 2017

This is Permission Error While Building App

You Need to Give Permission Gradle

sudo chmod -R 777 /Applications/Android\ Studio\ 3.0\ Preview.app/Contents/gradle

Enjoy :)