Where to install Android SDK on Mac OS X?

前端 未结 12 1936
耶瑟儿~
耶瑟儿~ 2020-12-07 07:52

Where should the Android SDK be installed on Mac OS X?

相关标签:
12条回答
  • 2020-12-07 07:59

    When I installed Android Studio 1.0 it ended up in

    /Library/Android/sdk/

    0 讨论(0)
  • 2020-12-07 07:59

    I have been toying with this as well. I initially had it in my documents folder, but decided that didn't make 'philosophical' sense. I decided to create an Android directory in my home folder and place Eclipse and the Android SKK in there.

    0 讨论(0)
  • 2020-12-07 08:03

    My personal preference is to put it in ~/opt/local/android-sdk-mac or /Developer/android-sdk-mac the latter being where Xcode and all the Apple Dev tools are held.

    0 讨论(0)
  • 2020-12-07 08:05

    In homebrew the android-sdk has migrated from homebrew/core to homebrew/cask.

    brew tap homebrew/cask
    

    and install android-sdk using

    brew cask install android-sdk
    

    You will have to add the ANDROID_HOME to profile (.zshrc or .bashrc)

    export ANDROID_HOME=/usr/local/share/android-sdk
    

    If you prefer otherwise, copy the package to

    ~/opt/local/android-sdk-mac
    
    0 讨论(0)
  • 2020-12-07 08:07

    I put mine in /Developer/SDKs I had to authenticate to do that…but since there's no consensus I thought that it sounded like a place I'd remember.

    0 讨论(0)
  • 2020-12-07 08:08

    From http://developer.android.com/sdk/index.html, it seems that you can install the SDK anywhere, so long as you

    1. "execute the android tool in the <sdk>/tools/ folder"
    2. Add the <sdk>/tools directory to your system path

    More info can be found here: http://developer.android.com/sdk/installing.html

    0 讨论(0)
提交回复
热议问题