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 here:
/Applications/ADT/sdk (as it is in your case).


If you installed the SDK using Homebrew (brew cask install android-sdk), then it's located here:
/usr/local/Caskroom/android-sdk/{YOUR_SDK_VERSION_NUMBER}


If the SDK was installed automatically as part of Android Studio then it's located here:
/Users/{YOUR_USER_NAME}/Library/Android/sdk


Once you know the location, open a terminal window and enter the following (changing out the path to the SDK to be however you installed it):
export ANDROID_HOME={YOUR_PATH}


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


Lastly apply these changes by re-sourcing .bash_profile:
source ~/.bash_profile

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android(安卓)3D翻转效果实践
  2. Handler 总结
  3. Android(安卓)中 ListView 控件的使用
  4. ida android incompatible debugger serv
  5. Android(安卓)Studio报Element XXXX must
  6. android 用LruCache读取大图片并缓存
  7. 从J2EE转向Android的第一天
  8. ionic应用的Android打包签名发布步骤
  9. android 好看的自定义日历
  10. Android(安卓)获取局域网内网IP地址