Help us understand the problem. What is going on with this article?

adbをMacのターミナルで使えるようにする

More than 1 year has passed since last update.

前提条件

Android Studioが入っていること(Hello Worldが作れること)

ToDo

Android SDKの格納場所を確認する

Android Studioで
「File」>「Other Settings」>「Default Project Structure…」
ここに記載されています。
スクリーンショット 2015-08-27 12.54.24.png

bash_profileにAndroid SDKのパスを記入する

下記コマンドでbash_profileを開きます
$vi ~/.bash_profile
先ほど確認したAndroid SDKの場所を記入します
export PATH=$PATH:/Users/furusin/Library/Android/sdk/platform-tools

bash_profileを再度読み込む

方法は2つあります。
1.ターミナルを再起動
2.コマンドで改めて読み込む

コマンドで改めて読み込む場合

ターミナルで次のコマンドを打ち込みます。
$source ~/.bash_profile

完了

以上で終了です。ターミナルでadbと打って「adb: command not found」とならなければ成功です。

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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした