Run/install/debug Android applications over Wi-Fi?

前端 未结 30 2316
[愿得一人]
[愿得一人] 2020-11-22 07:16

I thought there was a way to test your applications in development over Wi-Fi. Is this possible?

I\'d love to be able to untether my phone and develop wirelessly.

30条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 07:59

    android Wireless Debugging (MAC)

    step 1: go to sdk folder (common path "/Users/macname/Library/Android/sdk/platform-tools") open cmd here run "adb devices" output - List of devices attached

    if adb command not found in cmd type ./adb --help OS X / macOS: typically ~/.profile or ~/.bash_profile Add the following line there and replace the path with the one where you installed platform-tools:

    step 2: $ export PATH="/Users/macname/Library/Android/sdk/platform-tools":$PATH

    step 3: $ adb devices List of devices attached ZH99FF7FTY device

    step 4: $ adb tcpip 5555 restarting in TCP mode port: 5555

    step 5: $ adb connect 10.124.32.18:5555 connected to 10.124.32.18:5555

    Next Time repeat step 4 and 5 to reconnect Or if Device reboot and not connect follow step again BEST OF LUCK

提交回复
热议问题