Where to install Android SDK on Mac OS X?

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

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

12条回答
  •  挽巷
    挽巷 (楼主)
    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

提交回复
热议问题