本文介绍了在OSX上使用Parallels时如何在VS.NET 2015中运行Android仿真器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Cordova应用程序.当我选择Android模拟器并尝试运行时,出现以下错误:

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)

如果以上是环境变量,则它们不存在.我不确定.android\avd应该驻留在哪里.

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

我在Win7中.有任何解决方法的想法吗?

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

推荐答案

由于您在OSX上使用Parallels,因此需要做一些事情.首先,您的VM有两个重要设置:

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

  1. 取消选中共享配置文件"选项:选项">共享">共享配置文件"
  2. 启用嵌套虚拟化:选项>启用嵌套虚拟化

默认情况下,Parallels会将您的documents文件夹放在其他网络共享上,但网络共享效果不佳.关闭共享配置文件可以解决该问题.启用嵌套虚拟化可以提高性能.

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.

您还可以将Android模拟器设置为在OSX端运行,以轻松获得最佳性能.对此的说明如下: https://msdn.microsoft.com/zh-cn/library/dn913137.aspx

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

最后,这是有关使用Parallels的一些其他常规指南: https://msdn .microsoft.com/en-us/library/dn878133.aspx

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

这篇关于在OSX上使用Parallels时如何在VS.NET 2015中运行Android仿真器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-14 21:02