ionic framework - how to add Android Path in mac -


i'm using ionic2 , want run android in mac: when used command:

ionic cordova run android 

i had error:

error running 1 or more of platforms: android sdk not found. make  sure installed. if not @ default location, set  android_home environment variable. may not have required environment or os run project 

although have sdk installed in location:

/users/macbookpro/library/android/sdk 

and when write command in terminal:

export android_home=/users/macbookpro/library/android/sdk 

and write:

sudo nano /etc/paths 

i had these pathes only:

/usr/local/bin /usr/bin /bin /usr/sbin /sbin 

what should add path correctly!

i had similar problem , added directory /etc/paths.d

sudo mkdir /etc/paths.d 

and created file android-sdk

sudo vi /etc/paths.d/android-sdk 

add paths in file , save


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -