Remote debugging with Android emulator

前端 未结 8 1079
耶瑟儿~
耶瑟儿~ 2020-11-30 17:09

Is it possible to write the code/compile Android application on one machine and debug it remotely on the emulator launched on another? I\'m sick and tired of the emulator co

8条回答
  •  醉酒成梦
    2020-11-30 17:28

    My solution for windows + AndroVM (which requires a host-only adapter) when my ssh service failed to start. so it doesn't require any additional software.

    adb connect 
    adp tcpip 555
    

    On cmd prompt run as admin:

    netsh interface portproxy add v4tov4 listenport=5555 listenaddress= connectport=5555 connectaddress=
    

    open TCP port 5555 in windows firewall.

    Then, from the second PC run:

    adb connect 
    

提交回复
热议问题