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
Post a Comment