問題描述
Android 模擬器有點(diǎn)慢.對(duì)于某些設(shè)備,例如摩托羅拉 Droid 和 Nexus One,應(yīng)用程序在實(shí)際設(shè)備中的運(yùn)行速度比模擬器快.這是測試游戲和視覺效果時(shí)的問題.
如何讓模擬器運(yùn)行得盡可能快?我一直在玩弄它的參數(shù),但還沒有找到顯示明顯改進(jìn)的配置.
,
也很方便The Android emulator is a bit sluggish. For some devices, like the Motorola Droid and the Nexus One, the app runs faster in the actual device than the emulator. This is a problem when testing games and visual effects.
How do you make the emulator run as fast as possible? I've been toying with its parameters but haven't found a configuration that shows a noticeable improvement yet.
Official web page
~50% faster
Windows:
- Install "Intel x86 Emulator Accelerator (HAXM)" => SDK-Manager/Extras
- Install "Intel x86 Atom System Images" => SDK-Manager/Android 2.3.3
Go to the Android SDK root folder and navigate to extrasintelHardware_Accelerated_Execution_Manager. Execute file IntelHaxm.exe to install. (in Android Studio you can navigate to: Settings -> Android SDK -> SDK Tools -> Intel x86 Emulator Accelerator (HAXM installer))
Create AVD with "Intel atom x86" CPU/ABI
- Run emulator and check in console that HAXM running (open a Command Prompt window and execute the command: sc query intelhaxm)
Also don't forget install this one
P.S. during AVD creation add emulation memory: Hardware/New/Device ram size/set up value 512 or more
Linux:
- Install KVM: open GOOGLE, write "kvm installation "
- Create AVD with "Intel atom x86" CPU/ABI
- Run from command line: emulator -avd avd_name -qemu -m 512 -enable-kvm
- Or run from Eclipse: Run/Run Configurations/Tab "Target" - > check Intel x86 AVD and in "Additional Emulator Command Line Options" window add: -qemu -m 512 -enable-kvm (click Run)
P.S. For Fedora, for Ubuntu
OS-X:
- In Android SDK Manager, install Intel x86 Atom System Image
- In Android SDK Manager, install Intel x86 Emulator Accelerator (HAXM)
- In finder, go to the install location of the Intel Emulator Accelerator and install IntelHAXM (open the dmg and run the installation). You can find the location by placing your mouse over the Emulator Accelerator entry in the SDK Manager.
- Create or update an AVD and specify Intel Atom x86 as the CPU.
P.S: Check this tool, very convenient even trial
這篇關(guān)于讓安卓模擬器跑得更快的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!