我通过TCP / IP(在平板电脑上使用adbWireless)连接到我的设备:
$ adb connect 192.168.178.21
connected to 192.168.178.21:5555
$ adb devices
List of devices attached
192.168.178.21:5555 device
$ adb -d install program.apk
error: device not found
- waiting for device -
$ adb -s 192.168.178.21:5555 install program.apk
577 KB/s (1673947 bytes in 2.832s)
pkg: /data/local/tmp/program.apk
Success
我等了5分钟,但没有任何反应。
如何让adb -d
工作?
答案 0 :(得分:1)
有时使用控制台命令尝试帮助。 -d标志仅适用于usb设备:
zaytzev@piec-ubu:/opt/android-sdk-linux/platform-tools$ ./adb --help
Android Debug Bridge version 1.0.31
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.