0
0

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.

MacのAndroidStudioでrunするとcrashする問題の解決

Posted at

事象

AndroidStudioで run を実行すると Waiting for ADB と表示され、ロードが終わらないままcrashする

確認したこと

  • AndroidStudioのバージョン (2.0 / 2.2 /2.3)
  • JDKのバージョン確認
$ java -version
java version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01-447-11M4203)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-447, mixed mode)
  • ADB server手動起動
$ sudo /Applications/Android\ Studio.app/sdk/platform-tools/adb start-server
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *

対応

adb_usb.ini に入っている改行を削除

$vim ~/.android/adb_usb.ini
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x011c
                           # <---- 改行を削除

地味にハマりました…。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?