更新时间:2023-11-19 10:32:22
加上netcfg
记下IP地址和preSS 替代骨节病> + F7 骨节病>。 ADB连接< virtual_machine_ip>
在你的主机上的终端您应看到设备ADT,并能够在其上运行的应用程序。
编辑:这将工作,如果你设置为使用桥接或仅主机适配器:为NAT,必须设置端口转发第一:
VBoxManage modifyvm< name_of_your_android_vm> --natpf1亚洲开发银行,TCP,*,5555 *,5555
ADB连接本地主机:5555
I have android running on virtualbox, to use it as a second cell phone with an bluetooth usb stick, to connect it with a real device.
I have 2 Questions:
Is it possible to get access with DDMS in eclipse like the real device to the virtual box version?
How can i install in .apk package on the virtual box android?
I hope somoeone can help me.
Thanks!
netcfg
write down the IP address and press Alt+F7.adb connect <virtual_machine_ip>
in terminal on your host machine.You should then see the device in ADT and be able to run your applications on it.
Edit: This will work if you are set up to use bridged or host-only adapters: for NAT you must set up port forwarding first:
VBoxManage modifyvm <name_of_your_android_vm> --natpf1 adb,tcp,*,5555,*,5555
adb connect localhost:5555