search
LoginSignup
20
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

Mac に brew で Android SDK 導入

Homebrew で Android SDK をインストールできる。
zip を持ってくるやり方より楽で良い。

導入

$ brew install android-sdk

場所

いわゆる ANDROID_HOME を設定すべき場所は以下になる。

/usr/local/opt/android-sdk

※シンボリックリンク実体は /usr/local/Cellar/android-sdk/XX.XX.X

実行できるコマンド

主要なコマンドは /usr/local/bin にシンボリックリンクが張られるのでそのまま実行できる。

$ ls -ltr /usr/local/bin
…
…  aapt -> ../Cellar/android-sdk/24.4.1/bin/aapt
…  adb -> ../Cellar/android-sdk/24.4.1/bin/adb
…  aidl -> ../Cellar/android-sdk/24.4.1/bin/aidl
…  android -> ../Cellar/android-sdk/24.4.1/bin/android
…  ddms -> ../Cellar/android-sdk/24.4.1/bin/ddms
…  dexdump -> ../Cellar/android-sdk/24.4.1/bin/dexdump
…  dmtracedump -> ../Cellar/android-sdk/24.4.1/bin/dmtracedump
…  draw9patch -> ../Cellar/android-sdk/24.4.1/bin/draw9patch
…  dx -> ../Cellar/android-sdk/24.4.1/bin/dx
…  emulator -> ../Cellar/android-sdk/24.4.1/bin/emulator
…  emulator-arm -> ../Cellar/android-sdk/24.4.1/bin/emulator-arm
…  emulator-x86 -> ../Cellar/android-sdk/24.4.1/bin/emulator-x86
…  etc1tool -> ../Cellar/android-sdk/24.4.1/bin/etc1tool
…  fastboot -> ../Cellar/android-sdk/24.4.1/bin/fastboot
…  hierarchyviewer -> ../Cellar/android-sdk/24.4.1/bin/hierarchyviewer
…  hprof-conv -> ../Cellar/android-sdk/24.4.1/bin/hprof-conv
…  lint -> ../Cellar/android-sdk/24.4.1/bin/lint
…  llvm-rs-cc -> ../Cellar/android-sdk/24.4.1/bin/llvm-rs-cc
…  mksdcard -> ../Cellar/android-sdk/24.4.1/bin/mksdcard
…  monitor -> ../Cellar/android-sdk/24.4.1/bin/monitor
…  monkeyrunner -> ../Cellar/android-sdk/24.4.1/bin/monkeyrunner
…  traceview -> ../Cellar/android-sdk/24.4.1/bin/traceview
…  zipalign -> ../Cellar/android-sdk/24.4.1/bin/zipalign

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
What you can do with signing up
20
Help us understand the problem. What are the problem?