How to run Android emulator in VS.NET 2015 when using Parallels on OSX?

拥有回忆 提交于 2019-12-02 21:33:22

问题


I have a Cordova app. When I select the Android emulator and try to run, I get the following errors:

PANIC: HOME is defined but could not find AVD_GalaxyNexus_ToolsForApacheCordova.ini file in $HOME\.android\avd
(Note: avd is searched in the order of $ANDROID_AVD_HOME,$ANDROID_SDK_HOME\.android\avd and $HOME\.android\avd)

If the above are environment variables, they do not exist. I'm not sure where .android\avd is supposed to reside.

I'm in Win7. Any ideas how to fix this?


回答1:


Since you are using Parallels on OSX, there are a few things you need to do. First, two important settings for your VM:

  1. Uncheck the "Shared Profile" option: Options > Sharing > Shared Profile
  2. Enable nested virtualization: Options > Enable nested virtualization

By default, Parallels puts your documents folder among other things on a network share which does not work very well. Turning off Shared Profile fixes that problem. Enabling nested virtualization should improve performance.

You can also setup the Android emulator to run on the OSX side for maximum performance pretty easily. Here's instructions for that: https://msdn.microsoft.com/en-us/library/dn913137.aspx

Finally, here's some additional general guidance on using Parallels: https://msdn.microsoft.com/en-us/library/dn878133.aspx



来源:https://stackoverflow.com/questions/30217889/how-to-run-android-emulator-in-vs-net-2015-when-using-parallels-on-osx

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