ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

adb: unable to connect for root: more than one device/emulator

adb: unable to connect for root: more than one device/emulator

意思是当前 ADB 同时连着不止一个设备/模拟器,所以adb root不知道该对哪一台执行。解决方式就是先列出设备,然后指定目标设备序列号再执行。


1) 先看当前连了哪些设备

bat

adb devices -l

你会看到类似:

text

List of devices attachedemulator-5554 device ...R58Mxxxxxxx device ...

2) 指定其中一台设备执行adb root

把下面的SERIAL换成你在上面看到的序列号:

bat

adb -s SERIAL root

例如:

bat

adb -s emulator-5554 root

或:

bat

adb -s R58Mxxxxxxx root

3) 如果你只想保留一台设备,断开其他设备/会话

断开某个网络 ADB(如果有用adb connect连过)

先看有哪些连接(仍然用第 1 步),如果有形如192.

返回列表