Android模拟器有点迟钝。对于摩托罗拉Droid和Nexus One等设备,应用程序在实际设备上的运行速度比模拟器快。在测试游戏和视觉效果时,这是一个问题。
如何使模拟器尽可能快地运行?我一直在摆弄它的参数,但还没有发现一个配置显示出明显的改进。
Android模拟器有点迟钝。对于摩托罗拉Droid和Nexus One等设备,应用程序在实际设备上的运行速度比模拟器快。在测试游戏和视觉效果时,这是一个问题。
如何使模拟器尽可能快地运行?我一直在摆弄它的参数,但还没有发现一个配置显示出明显的改进。
当前回答
编辑虽然使用英特尔图像可以获得一些性能提升,但使用Genymotion获得的性能要大得多。请看保罗·拉默茨马的回答。
以前的回答
ADT rev 17模拟器支持在Windows和Mac OS x上以虚拟化模式运行x86系统映像,这对性能有显著影响。
ADT rev 17注释: http://android-developers.blogspot.jp/2012/03/updated-sdk-tools-and-adt-revision-17.html
配置虚拟机加速: http://developer.android.com/guide/developing/devices/emulator.html#accel-vm
其他回答
更新当前的Android Studio到Android Studio 2.0,并更新系统映像。
Android Studio 2.0模拟器的运行速度比Android之前的模拟器快3倍,通过ADB的增强,您现在可以将应用程序和数据推送到模拟器,比推送到物理设备快10倍。与物理设备一样,官方Android模拟器也内置了谷歌播放服务,因此您可以测试更多的API功能。最后,新的模拟器具有丰富的新功能来管理呼叫、电池、网络、GPS等。
你也可以尝试Visual Studio Android Emulator,它也可以作为一个独立的模拟器安装(你不需要Visual Studio)。请注意,它只能安装在Windows Pro或更高的系统上。
Thank you @zest! Worked like a charm. Some things of note: Need to apply Intel's hotfix for the HAXM to deal with kernel panic issue: http://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager Also, note, if you have more than one abi, you need to uninstall one due to a bug in the latest version of the Android API (r19): https://code.google.com/p/android/issues/detail?id=66740 (remove armeabi-v7a in this case, since you want the x86 abi). Other than the 45-minutes it took me to resolve these, it was an very rewarding exercise in terms of the increased performance of the emulator.
如果你没有一个好的显卡(像我一样),选择一个低分辨率的模拟器(例如:Nexus S)
谷歌最近发布了一款新的Android模拟器。它比旧的更快更好。你可以在这里找到更多信息。