No network connection - Android-x86 on VMWare Fusion

喜欢而已 提交于 2019-12-22 09:13:26

问题


I'm trying to come up with some kind of Android environment to use for development on Mac OSX.

It's proving quite difficult ( Android emulator laggy on Mac ). On my macbook the Android emulator is so slow that it is unusable. Note, I'm trying to build a tablet app, which seems to make things worse.

So far the best performance I've found is just running the x86 port of Android via VMWare fusion.

The only problem is the darn thing keeps giving a "No network connection" message.

I don't know much about VMWare, but I'm guessing that Android wants to use the virtual wifi adaptor, but VMWare fusion only provides a virtual ethernet adapter.

The image I'm currently testing is android-x86-3.2-RC2-eeepc.iso

What can I do about this?


回答1:


Boot up Android x86, hit Alt+F1 (shows the shell). Put netcfg into and you get a IP.
Open a shell on, and write adb connect <theipyougot>into.
Now you should see your Emulator via adb devices and in Eclipse.

It can be possible, to play around with the VMWare Network Adapters. On VirtualBox I use a Host-only Adapter.

Reference: http://www.android-x86.org/documents/debug-howto
If you cant get it working, take a look at virtualbox (https://www.virtualbox.org/wiki/Downloads)




回答2:


I try to use Eclipse connect to Android x86 setup in VMware several times. I found that it works well with Android-x86 2.2 for generic x86 PC. However, there are something wrong with Android-x86 3.2, it always show 127.0.0.1 when I set Bridged connection.




回答3:


you can use: dhcpcd eth0; dhcpcd eth1;




回答4:


  1. install android x86 on vmware
  2. run android terminal write command "ifconfig eth0"
  3. "adb connect IP address of the VM:5555" now run your app on vmware


来源:https://stackoverflow.com/questions/9042404/no-network-connection-android-x86-on-vmware-fusion

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!