The topic thought for a long while, or so tangled, explain it. Recently started to touch Android development, the deployment of development environment will not say, a variety of hard to chisel wall. Finally, debugging has come to a problem. Android devices are old and inefficient; the AVD is not to mention, a picture to look at the past. Fortunately, there are artifacts, genymotion!. In this strongly recommended! Performance on a variety of Android devices on several streets.
But the problem comes, I have a hobby, like to put a variety of development environment into different virtual machines, so that they do not interfere with each other, and can bring. But genymotion in the virtual machine can not use ~, prompted to need OpenGL2.0 version of support. But VirtualBox clearly early claimed support OpenGL2.0, VMware also said no problem, but no matter how to toss, eventually there is no result.
Just in time to give up, I thought of remote debugging to solve the problem, the results are very satisfied. The process is as follows:
1, the genymotion installed on the host machine, and download the required virtual machine (this process seems to have to chisel wall, pain ah ~ ~)
2. Set the network of the virtual machine. This is explained here, because genymotion is dependent on vitrualbox, so it is equivalent to creating a new virtual machine in VirtualBox. After opening the VirtualBox, you will see that the corresponding virtual machine has been installed, right click on the "Settings", then select "Adapter2" in "Network", "attached to" bridged Adapter, then click "OK". As for why is the election "Adapter2" I can not say, I hope that the cow could explain, but the purpose of the set is to let the virtual machine and host the same network segment IP.
3, open Android virtual machine, generally in the Android device setting about there is a status, inside can view the current device IP, write down this IP address. PS: There is another app that can display IP directly, called Adbwireless.
4, running the development environment of the virtual machine, in the SDK directory Platform-tools has an ADB connect [IP] directive, directly in the cmd down can be connected before the Android virtual device IP, successful will have a corresponding prompt. At this point, we have successfully connected the Android virtual appliance in the virtual machine environment.
Open Eclipse,run Write Good project, will appear in target device of our virtual Android device, and then on the cool crooked, haha ~
Ps: I am just contact with the development of Android novice, if there is ill-conceived, but also hope that your predecessors a lot of advice ~
Android Development--virtualbox Virtual machine usage in the environment