6
6

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 Toolsからadbコマンドをインストールする方法

Last updated at Posted at 2015-08-07

ArchLinuxの場合は、以下のコマンドでOKです。

$ yaourt -S android-sdk-platform-tools

Macの場合は、Homebrewにパッケージはあるのだろうか。brew searchで検索してみてください。

$ curl -O http://dl.google.com/android/android-sdk_r24.3.3-macosx.zip

$ if [ `openssl sha1 android-sdk_r24.3.3-macosx.zip | cut -d '=' -f 2` = 41f0f3e76d6868018740e654aefb04fd765c357d ] ;then;echo ok;fi
ok

$ unzip android-sdk_r24.3.3-macosx.zip

$ mv android-sdk-macosx ~/Applications/

$ ~/Applications/android-sdk-macosx/tools/android

# ~/.${SHELL##*/}rcに追記しましょう
$ export ANDROID_HOME=$HOME/Applications/android-sdk-macosx
$ export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

# 追記後は読み込みます
$ source ~/.${SHELL##*/}rc

ここで、Android SDK Platform Toolsをインストールします。

android-sdk-macosx/platform-tools/以下にadbコマンドなど各種がインストールされます。

$ which adb
~/Applications/android-sdk-macosx/platform-tools/adb
6
6
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
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?