android - how to set set the ANDROID_HOME environment variable in mac -


enter image description here

i had set create .bash_profile file , save these lines:

export android_home=/users/macbookpro/library/android/sdk export path=$path:$android_home/tools:$android_home/platform-tools 

and enter in terminal: source ~/.bash_profile , if enter in terminal command: echo $android_home have correct path:

/users/macbookpro/library/android/sdk 

but if run command:

ionic cordova run android 

in ionic project, got 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 

what should do!


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -