1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンドのみでAndroid SDKをインストール

Last updated at Posted at 2016-09-10

環境

  • OSX 10.11.3

Step

1. download

後でアップデートするため、
この段階で取得するandroid-sdk-toolsのバージョンはなんでも良い

$ wget -P ~/Downloads https://dl.google.com/android/android-sdk_r24.4.1-macosx.zip

wgetが見つからない場合は...
command not found: wget

wgetをインスコ

$ brew install wget

2. deploy

$ unzip android-sdk_r24.4.1-macosx.zip
...
# deployする場所はどこでもおk
$ mkdir ~/Library/Android
$ mv android-sdk-macosx ~/Library/Android/sdk
# ここはログインシェルによる
$ echo "export ANDROID_HOME=\"/Users/${USER}/Library/Android/sdk\"" >> ~/.zshrc
$ echo "export ANDROID_SDK_TOOLS=\"/Users/${USER}/Library/Android/sdk/tools\"" >> ~/.zshrc
$ echo 'export PATH=$PATH:$ANDROID_HOME:$ANDROID_SDK_TOOLS' >> ~/.zshrc
$ . ~/.zshrc

3. update & install

Android SDK toolsを最新にする

$ android update sdk -a -u -t tools,platform-tools

Googleのライブラリをインストール

$ android update sdk -a -u -t extra
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?