...可以通过USB连接,也可以使用无线连接设备进行调试
Android supports a variety of USB peripherals(周边设备) and Android USB accessories (hardware that implements the Android accessory protocol) through two modes: USB accessory and USB host.
》This will prevent you from having an adb
connection to the Android-powered device via USB. You can still access adb
over a network connection. To enable adb
over a network connection:
- Connect the Android-powered device via USB to your computer.
- From your SDK
platform-tools/
directory, enteradb tcpip 5555
at the command prompt. - Enter
adb connect <device-ip-address>:5555
You should now be connected to the Android-powered device and can issue the usualadb
commands likeadb logcat
. - To set your device to listen on USB, enter
adb usb
.