为什么ADT Ubuntu无法识别我的设备? [英] Why ADT Ubuntu does not recognize my device?

查看:136
本文介绍了为什么ADT Ubuntu无法识别我的设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Motorola G,我尝试从DEVELOPED ADT Ubuntu安装我的程序,问题是我在执行电子应用程序时收到消息

I have a Motorola G, and I try to install my programs from DEVELOPED ADT Ubuntu, the problem is that I get the message when I ejercutar application

在终端上,显示以下内容

From terminal, the following is displayed

zhelon@zhelon-Lenovo-IdeaPad-Z400:~$ sudo adb devices
List of devices attached 
????????????    no permissions


推荐答案

最实用的解决方法是运行具有root用户访问权限的 adb 工具。您会得到一个没有权限的错误,因为您需要超级用户特权才能与连接的设备进行交互。

The most pragmatic way to fix this would be to run adb tools with root access. You are getting a no permissions error, because you need super user privileges to interact with attached devices.

要改善答案并减轻多余安全问题,您也可以通过为设备添加udev规则而无需root即可运行 adb 此处的说明

To improve the answer, and alleviate superfluous security concerns, you can also run adb without root by adding a udev rule for your device. Instructions here.

首先,查询 lsusb

$ lsusb
Bus 002 Device 103: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II]

然后创建一个新规则文件并添加规则( /lib/udev/rules.d/10-adb.rules ):

Then create a new rules file and add the rule to it (/lib/udev/rules.d/10-adb.rules):

# ADB
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="username"

然后重新启动udev或重新启动计算机(推荐)。

Then restart udev, or reboot your computer (recommended).

这篇关于为什么ADT Ubuntu无法识别我的设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆