为什么模拟器在 Android Studio 中很慢? [英] Why emulator is very slow in Android Studio?
问题描述
我刚刚在我的 PC 上设置了 Android Studio,这是开发 Android 应用程序的新版本.
I just setup Android Studio on my PC, which is new launch to develop Android application.
我的问题是,当我尝试在模拟器中运行我的小应用程序时,启动需要很长时间,然后模拟器运行速度也很慢.
My problem is that, when I try to run my small app in emulator, it take to much time to launch and after then emulator is working slow too.
AVD 设置
AVD 名称:Glaxy
设备:Glaxy Nexus(4.65 英寸,720x 1280:xhdpi)
目标:Android 4.2.2 - API 级别 17
内存选项:Ram 500,VM 堆 64
内部存储:200MiB
AVD Name: Glaxy
Device: Glaxy Nexus (4.65", 720x 1280: xhdpi)
Target: Android 4.2.2 - API Level 17
Memory Option: Ram 500, VM Heap 64
Internal Storage: 200MiB
我有很好的窗口电脑:Intel Core 2 Duo 2.93Ghz 和 Ram 是 3gb
I have good window pc: Intel Core 2 Duo 2.93Ghz and Ram is 3gb
我是 Android 开发和 Java 新手.
I am new in Android development and java.
推荐答案
最好的解决方案是使用带有英特尔虚拟化技术的 Android Emulator.
The Best Solution is to use Android Emulator with Intel Virtualization Technology.
现在,如果您的系统有一个处理器,该处理器具有称为英特尔虚拟化技术的功能,那么英特尔 X86 映像将为您带来巨大的好处.因为它支持英特尔® 硬件加速执行管理器(英特尔® HAXM).
Now if your system have a Processor that have a feature called as Intel Virtualization Technology, then Intel X86 images will be huge benefit for you. because it supports Intel® Hardware Accelerated Execution Manager (Intel® HAXM).
要检查您的处理器是否支持 HAXM:单击此处
To check that your processor support HAXM or not : Click Here
您需要在系统中手动安装英特尔 HAXM.为此,请按照以下步骤操作.
You need to manually install the Intel HAXM in your system. Follow these steps for that.
- 首先去 - adt -> extras -> intel -> Hardware_Accelerated_Execution_Manager
- 确保在 BIOS 设置中启用了英特尔虚拟化.
- 现在在您的系统中安装英特尔 HAXM 并选择内存量(我更喜欢将其设置为默认值).
- 安装后创建新的 Android 虚拟设备 (AVD),其目标应为 API 级别 xx
- 现在将 CPU/ABI 设置为 Intel Atom(x86).
- 如果您使用的是 Windows,则在设置模拟器时不要将 RAM 值设置为超过 768 MB.
- 运行模拟器.它会比普通的快得多.
希望对你有帮助.:) 谢谢.
Hope it will be helpful for you. :) Thanks.
这篇关于为什么模拟器在 Android Studio 中很慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!