ionic cordova build android throws Error: spawn EACCES

I am working on mac please take a look at my error

here is my ~/.bash-profile

export PATH=$PATH:/Users/xxxxx/Library/Android/sdk/platform-tools/
export ANDROID_HOME=/Users/xxxx/Library/Android/sdk/
export PATH=$ANDROID_HOME/platform-tools:$PATH
even $(user/libexec/path_helper -s)

and my ionic info result is

global packages:

    @ionic/cli-utils : 1.1.2
    Cordova CLI      : 7.0.1 
    Ionic CLI        : 3.1.2

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.1.2
    @ionic/cli-plugin-ionic-angular : 1.1.2
    Ionic Framework                 : ionic-angular 3.2.1


    Node       : v6.10.0
    OS         : OS X El Capitan
    Xcode      : Xcode 8.2.1 Build version 8C1002 
    ios-deploy : not installed
    ios-sim    : not installed

on giving ionic cordova build android i am getting the above image error

i belive it is something to deal with the environmental variable what i am missing is there anything i have to specify for mac.

the above same environment is working in my linux system.

Author: Fantashit

1 thought on “ionic cordova build android throws Error: spawn EACCES

Comments are closed.