Android Virtual machine genymotion use related issues and handling

Source: Internet
Author: User

Currently I have three Android simulators that are Bluestacks,genymotion,andy, and Andy has a feature that provides remote control that can be installed on Android phones/tablets Andy's APP directly wirelessly operates the simulator on the computer, personally using the first two, feeling more like genymotion, more lifelike. Of course, it's just a personal opinion, and the difference remains to be experienced by the reader personally. There's a chance to try the Andy Simulator and be interested in the app's remote control.

The following person describes some of the problems I have encountered during my use:

1.Genymotion Network problems

Let's introduce VirtualBox network settings, go from http://reverland.bitbucket.org/VirtualBox_net.html, thank the author.

VirtualBox has 5 network modes, which are explained below.

Nat〈 Network Address Translation mode

VirtualBox in the virtual host (hereinafter referred to as: Virtual host) is not real in the network, host and host network hosts can not directly access the virtual host, the virtual host is not connected. The virtual host can access the host and any hosts that the host can access. Virtual Host access Network is the first through the VirtualBox conversion and then sent out, the data receive is also first received by VirtualBox and then forwarded to the virtual host.

If you do not understand, you can refer to: http://zh.wikipedia.org/wiki/network address translation.

The virtual Host network parameter is obtained by default from the VirtualBox virtual DHCP Ser:

IP Address Subnet Mask Gateway DNS
10.0.x.15 255.255.255.0 10.0.x.2 10.0.x.3
VirtualBox Port Forwarding

As mentioned above, no host in the host and host network can directly access the virtual host, but VirtualBox provides port forwarding, which allows us to set specific end-of-statement entity network access.

It is not easy to set certain ports that are sent to the host to be forwarded to the virtual host. Host IP address simply 127.0.0.1 it!

Bridged adapter〈 Bridging mode
need to load module Vboxnetflt

A virtual host is bridged to a host's network card via VirtualBox, just as if it were the real one in the host network. The virtual host can be seamlessly connected to hosts in the host and host network. The NIC that is bridged will turn on promiscuous mode.

Virtual Host network parameters: the same network segment that is manually configured to bridge the host NIC, or obtained through DHCP Ser in the host network.

if the host in a restricted network virtual host is not able to access the Internet, such as: Host using ADSL, using proxy or VPN, host Gateway made MAC address restrictions
...
Internal〈 Internal model

Virtual machines are completely separate from the outside world, the virtual machine and the host network can not be interconnected, only the same name (such as: intnet) of the internal network mode of the virtual machine can access each other, there is one condition is in the same network segment OH.

Virtual Host network parameters: IP is not assigned by default and needs to be set manually.

Host-only Adapter〈 Homestay Host mode)

VirtualBox in the host virtual a host-only network card, and then the virtual host Bridge to the Host-only network card, we can set up the Host-only network card (sharing, bridging) to achieve networking. Oh, this hands-on relatively strong, although you have a certain network technology OH.

For the bridge and share of the network card, you can check Windows related articles, or Google search "Windows network card XX".

Virtual Host network parameters: Default IP field 192.168.56.x/24

"Unspecified", hehe, choose this what will happen?

If you choose "Unspecified", you will not be able to communicate with any host, only can self ping self!

VirtualBox Other issues

Although the VirtualBox bridging mode is very useful, what do you do with restricted networks? With NAT mode, no! It's too much trouble for the host to access the virtual host. My method is to add two network cards to the virtual host, one network card using NAT mode, the other network card using bridged adapter mode, and then set a static route to the virtual host, set the data to access the host from the bridged adapter mode network card sent out, The Internet access data is sent from the NAT mode NIC. Isn't it very simple ah!

For genymotion network problems, please see the above red text, you can easily set up the Genymotion network ( also can solve the problem of school Ruijie )

Add two network cards to the virtual host, one network card using NAT mode, another network card using bridged adapter mode, and then set the static route to the virtual host, set the data to access the host from the bridged adapter mode of the network card sent out, The Internet access data is sent from the NAT mode NIC.

2. Error install_failed_cpu_abi_incompatible solution when installing external applications or using Genymotion debugging

    • Many arm programs can not be installed (for example), after all, is the use of vbox virtual machine, equivalent to run in the x86 environment, the limited arm program is naturally unable to install, will prompt "install_failed_cpu_abi_incompatible" This error, You cannot deploy to the emulator, and if you install the APK directly, you will be prompted to be incompatible with your device.

Workaround:

Click to download Genymotion-arm-translation.zip

Run your virtual machine, drag the downloaded Zip pack mouse to the VM window, and confirm the cross-frame point OK on the line. Then restart your virtual machine.

However, in the actual operation of the process, found in the partial emulator environment, the ZIP file will be dragged into the error, indicating "An error occurred while deploying a file". After experimentation, it is impossible to manually install the contents of the Zip package with Ddms (to copy to System). Personally, the reason may be that the device is not in the root state, but the genymotion should be already root, ah, the final solution is through the RE manager and other file management tools, first get root read and Write permissions, and then manually copy the file in the past to replace the line (remember to restart). In fact, this method is also XDA's post ([Guide] genymotion | Installing ARM translation and GApps) mentioned inside. There should be a simpler way, in fact, is to copy the files under the System/lib in the ZIP package to the device on the line.

After this operation, you can install a variety of arm programs, but also normal installation, tested to use there is no problem.

Have not tried genymotion friend recommend try this simulator, many times, than the real confidential more convenient, performance is also very good.

Android Virtual machine genymotion use related issues and handling

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.