Monday, October 19, 2015

Mac hot to set Androdi_HOME


you can follow me:

1 .
export ANDROID_HOME=/Users/Hades/Library/Android/sdk

2.
Once you have this set, you need to add this to the PATH environment variable



export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools


reference:

http://stackoverflow.com/questions/19986214/setting-android-home-enviromental-variable-on-mac-os-x

========================================

The right answer:
1
you can up method. but you will find that  when you restart you mac pc, your adb can't use in terminal. So in a ward, the first way just for one time setting. But how to set Path forever

you can look this url:https://seo-michael.co.uk/how-to-setup-adb-on-os-x/

it is useful for me.

i do for this way, but when i kill the termial. when i input 
echo $PATH,  there is nothing to print!
I don't know why?  So i just restart the computer. you will find your setting is success!

just so so!

No comments:

Post a Comment