Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 444
ramya Avatar asked Aug 04 '16 12:08

ramya


2 Answers

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 :)

like image 192
Krunal Vaghela Avatar answered Oct 14 '22 17:10

Krunal Vaghela


hit this command

sudo chmod -R a+rwx /appfolder 

It is caused by permission problem. More info on problem here.

If this does not solve your problem then its probably issue of permission in your user profile directory. Try above command on user directory. It will take some time to apply permission.

Regards.

like image 31
Hardik Vaghani Avatar answered Oct 14 '22 17:10

Hardik Vaghani