我认为有一种方法可以通过Wi-Fi在开发中测试您的应用程序。这可能吗?
我希望能够无线开发,解放手机束缚。
我希望能够无线开发,解放手机束缚。
我使用adb shell ip -f inet addr show wlan0
命令在adb tcpip 5555
之后查找设备IP。
新版本已弃用adb netcfg。因此,当接口名称为wlan0(默认接口名称)时,这是查找设备IP的正确方法。
这太简单了...
步骤1:
connect mobile to laptop (PC)
find adb path in Eclipse or Go Tast manager (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Esc</kbd>) -> process -> adb.exe -> right-click -> open file location -> copy the path of the open window (like D:\.....)
步骤2:
open cmd and change directory like C:, D:, E:, and G:
1: C:\Users\UMT>D:
2: D:\> cd (past path of adb) like (ANDROID eclipse\Eclipse Setup\adt-bundle-windows-x86_64-202\sdk\plat-form-tools) and press enter
3: Then type `adb tcpip 5555`. Press <kbd>Enter</kbd> ... make sure your mobile connects to the PC
步骤三:
Open new cmd and same above, go to the adb directory and type
adb connect 192.168.x.x(device ip):5555
press enter now connect it.
设备IP地址:设置 -> 关于手机 -> 状态 -> IP地址