LoginSignup
2
0

More than 1 year has passed since last update.

[Android][ADB] adb devices unauthorized の修正法

Posted at

概要

Android 実機をmacに繋ぎ 実機debugしようとしたが
adb に認識されない ( 以下

$ adb devices
List of devices attached
R58NC0HZ64J	unauthorized

原因

一般にAndroid実機に繋ぐと USB接続を許可しますか dialogが出る

(なんらかの理由で) 今回はそれが出てない

解決法

とりあえず以下をやってみる:

rm ~/.android/adbkey
adb kill-server
adb start-server

でUSB繋ぎ直してみる...

->
Android実機のSettings -> developer options

allow USB debug を許可済み 確認をし
Revoke USB debugging authorization
でrevoke もしてみる

それでもだめなら
Developer options 自体をoff
にする

私(今回)の場合、
onにしたところ再度許諾のdialog が出たため
authorized された

参考

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