Where to install Android SDK on Mac OS X?

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

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

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

    I ended up placing my at ~/sdks/android-sdk-mac_x86. I like to keep all of my SDKs in one place and for me an sdk folder under my home directory makes the most sense.

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

    I just have mine in MyUser/Documents/Development. I'm the only one that used my Mac, so I didn't need to worry about making it accessible system-wide.

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

    The easiest (and standard) way to install Android SDK under OS X is to use brew.

    brew install android-sdk

    If you do not have homebrew, here's how to get it.

    This will install Android SDK into /usr/local/Cellar/android-sdk/ and, at this moment, this is the best location to install it.

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

    A simple way is changing to required sdk in some android project the number of

    compileSdkVersion

    in build.gradle file and you can install with the manager

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

    By default the android sdk installer path is ~/Library/Android/sdk/

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

    You can install android-sdk in different ways

    1. homebrew
      Install brew using command from brew.sh

      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"  
      

      Install android-sdk using

      brew install android-sdk
      

      Now android-sdk will be installed in /usr/local/opt/android-sdk

      export ANDROID_HOME=/usr/local/opt/android-sdk
      
    2. If you installed android studio following the website,
      android-sdk will be installed in ~/Library/Android/sdk

      export ANDROID_HOME=~/Library/Android/sdk
      

    I think these defaults make sense and its better to stick to it

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