每次在命令提示符下编写代码时,我都无法通过WIFI
将设备连接到Android Studio。在命令提示符下是否有执行代码的Windows快捷方式,需要将设备连接到Android Studio以调试我的应用程序。这会很好......
我每次都会将设备连接到Android Studio:
Connect the device via USB and make sure debugging is working.
adb tcpip 5555
find the IP address with adb shell netcfg
adb connect <DEVICE_IP_ADDRESS>:5555
Disconnect USB and proceed with wireless debugging.
adb -s <DEVICE_IP_ADDRESS>:5555 usb to switch back when done
答案 0 :(得分:2)
经过几个小时的搜索,我找到了解决办法。要将您的设备连接到Android Studio,请按以下步骤操作:
<强>步骤:强>
文件 CoonectDevice.bat
cd\
cd c:
cd C:\Users\user2\AppData\Local\Android\Sdk\platform-tools
adb connect <DEVICE_IP_ADDRESS>