我一直在运行Android Studio 1.5.1,并在Windows 2012 R2的WMWare副本上进行开发,并且一切正常。我已经能够毫无问题地运行设备模拟器并启动在AVD中运行的各种版本的Android。
Android Studio 2.x更改我最近安装了Android Studio 2.0(具体版本请参见下图)。
现在,当我尝试运行模拟器时,什么也没有发生。好吧,实际上,当我尝试启动设备时,确实在Studio的状态栏中看到了一条消息,但是随后该消息消失了,此后没有任何反应。
有警告我需要关闭Hyper-V(请参见下图),但是我不认为这是可能的,因为这是VM。
不再可能?
不能再在VM上运行仿真器吗?
我只是在我的Windows 2008 R2虚拟机(运行VMware)安装的Android 2.1工作室,我很高兴向大家报告,它是可以运行在虚拟机上基于ARM AVD(Android的虚拟设备)。
在VMWare上运行基于Arm的虚拟设备的步骤
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).
Also, you cannot start these images from AVD that launches from Android Studio 2.x
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上运行:
包含Google API的ARM映像
我尝试安装包含Google API的ARM映像,但该映像永远不会启动。我记录了一些失败的日志c:\> adb shell logcat
。
当心:它真的很慢
但是,运行Android 7似乎非常慢,而且我看不到网络浏览器。不确定它对您有多大帮助,但是您可以使它正常工作。祝好运。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句