是否可以在VMWare上运行Android设备模拟器(通过Android Studio 2)?

拉德德武斯

我一直在运行Android Studio 1.5.1,并在Windows 2012 R2的WMWare副本上进行开发,并且一切正常。我已经能够毫无问题地运行设备模拟器并启动在AVD中运行的各种版本的Android。

Android Studio 2.x更改我最近安装了Android Studio 2.0(具体版本请参见下图)。

Android Studio版本信息

现在,当我尝试运行模拟器时,什么也没有发生。好吧,实际上,当我尝试启动设备时,确实在Studio的状态栏中看到了一条消息,但是随后该消息消失了,此后没有任何反应。

开始...

有警告我需要关闭Hyper-V(请参见下图),但是我不认为这是可能的,因为这是VM。

不再可能?

不能再在VM上运行仿真器吗?

关闭Hyper-V

拉德德武斯

我只是在我的Windows 2008 R2虚拟机(运行VMware)安装的Android 2.1工作室,我很高兴向大家报告,它可以运行在虚拟机上基于ARM AVD(Android的虚拟设备)。

在VMWare上运行基于Arm的虚拟设备的步骤

  1. 转到您已安装Android SDK的位置(在我的情况下为%appdata%\ Android2 \ SDK \
  2. 如果在正确的位置,您应该会看到目录结构和目录,如下面的第一幅图所示。

对你说

  1. 双击启动AVD.exe。

您将看到下图所示的窗口 经理

  1. Take a close look and notice that this is running an ARM(armeabi-v71) image. When you download images you have to download ARM-based images. (no x86 images will work on VM).

  2. Also, you cannot start these images from AVD that launches from Android Studio 2.x

  3. Make sure you have an environment variable named ANDROID_SDK_HOME set to path which is similar to the one at the top of the AVD manager (in image).

Once you do all of this and start an ARM-based image on a VMWare VM it will warn you that it is faster with HAXM but at least the image will run.

Finally, you can see if you attempt to launch your Virtual Device from the AVD Manager in Android Studio then it will warn you that Hyper-V needs to be turned off. Of course you cannot turn Hyper-V off on a VM.

在此处输入图片说明

EDIT -- Running Android 7 ARM Image

@mcflysoft问有关运行android 7 ARM映像的问题。最初我认为它没有用,但是如果您打开SDK管理器并安装下图所示的确切ARM OS映像,它将在Windows VM上运行:Android 7手臂

包含Google API的ARM映像

我尝试安装包含Google API的ARM映像,但该映像永远不会启动。我记录了一些失败的日志c:\> adb shell logcat

当心:它真的很慢

但是,运行Android 7似乎非常慢,而且我看不到网络浏览器。不确定它对您有多大帮助,但是您可以使它正常工作。祝好运。

android 7正在运行

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Android Studio:模拟器已在运行

我可以使用Android Studio Avd Manger在Windows上运行iOS模拟器吗

如何解决android studio模拟器运行问题?

我可以在Android Studio中运行没有HAXM的模拟器吗?

适用于Android的Visual Studio模拟器-运行模拟设备需要内部虚拟网络开关

模拟器无法在Android Studio 2.0中运行

Android Studio应用在真实设备上崩溃,但可在模拟器上运行

Android Studio模拟器未运行我的应用

我可以在Android Studio窗口内(或上方)运行Android模拟器吗?

Android Studio运行模拟器快照

Android Studio模拟器(设备未授权)

Android Studio模拟器:错误:检测到挂起线程QEMU2主循环

Android Studio是否需要映像来运行模拟器?

Android Studio-无法连接到设备或模拟器

Android Studio应用可在真实设备上运行,但无法在模拟器上运行

ImageButton在模拟器或物理设备上的Android Studio上不可见

如果我的应用在Android Studio模拟器上运行缓慢,会在设备上运行缓慢吗?

设备模拟器-5554断开连接(Android Studio上没有模拟器)

在Android Studio模拟器上运行React Native应用

Android Studio 3.6:无法在模拟器或设备上运行APK

Android Studio-模拟器未运行

Android Studio的模拟器?

无法让android studio模拟器运行

在Android Studio中运行模拟器时出错

Android Studio 2.1.1:“未检测到USB设备或正在运行的模拟器”

Android-空数组。拔出时可在Android Studio模拟器中运行,但不能在真实设备上运行

在 android studio 2.2.3 中未检测到 USB 设备或正在运行的模拟器

Android Studio 模拟器未运行。代码没问题

如何在android studio之外运行模拟器?