Connect Eclipse to Android emulator on a different machine

后端 未结 6 2046
抹茶落季
抹茶落季 2020-12-16 17:27

Can\'t seem to find the following information although I\'m pretty sure this should be possible: I\'m running an Android emulator on a machine A. I\'m developing on another

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 17:55

    In the meantime, I found a very nice solution to the problem. I installed android-x86 (http://www.android-x86.org) in a virtual machine. On the host, you then use the following commands to restart adb and connect to the vm:

    adb kill-server
    adb connect :5555
    

    Replace VM-IP with the actual IP of your virtual machine. If you're on a private network, the easiest way is to configure vm network as bridged so the VM gets its own IP address from the dhcp server. Should also work with Host-Only networks though as described here.

    If all went well, you should see the android VM in the Eclipse debugger just like normal emulators.

提交回复
热议问题