ANDROID_HOME on Mac OS X
Where the Android-SDK is installed depends on how you installed it. If you downloaded the SDK through their website and then dragged/dropped the Application to your Applications folder, it's most likely in /Applications/ADT/sdk
(as it is in your case).
If you installed it using Homebrew (brew install android-sdk
), then it's located here:
/usr/local/Cellar/android-sdk/24.3.3 # Don't forget to check your SDK version.
Open the terminal window and enter the following (changing out the path to the SDK to be however you installed it):
export ANDROID_HOME=/Applications/ADT/sdk # or export ANDROID_HOME=/usr/local/Cellar/android-sdk/24.3.3
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
http://stackoverflow.com/questions/19986214/setting-android-home-enviromental-variable-on-mac-os-x
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步