3
1

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.

LinuxでAndroid端末を認識しないときにやったこと

Last updated at Posted at 2019-08-26

UbuntuでAndroid開発をしていた際にハマったので備忘として残しておきます。

起きたこと

USBにPixel3を接続しても、デバッグ接続ができない。

$ANDROID_HOME/platform-tools/adb devices

XXXXXXXX    no permissions (user in plugdev group; are your udev rules wrong?); 
see [http://developer.android.com/tools/device.html]

対応方法

設定がない場合は、以下の内容のファイルを作成する
/etc/udev/rules.d/51-android.rules

SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"

権限を追加(必要があれば)


chmod a+r /etc/udev/rules.d/51-android.rules

端末を繋ぎ直せば認識される

$ANDROID_HOME/platform-tools/adb devices

XXXXXXXX    device
3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?