Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
20
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

@kobake@github

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
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
20
Help us understand the problem. What are the problem?