问题描述
如何提高 Eclipse SDK for Android 应用程序开发中虚拟设备模拟器的速度?我一直在互联网上搜索以了解如何加快这件事,但我似乎找不到真正适合我的修复程序.我遇到的另一个问题是我无法获得超过 1024MB 的 RAM.
How do I increase the speed of the virtual device emulator in the Eclipse SDK for Android app development?I have been searching all over the internet to find out how to speed this thing up, but I can't seem to find a fix that actually works for me.Another problem I'm having is that I can't get the RAM above 1024MB.
感谢所有帮助.我现在已经确定了速度.对于遇到相同问题的任何人,请确保选中此框.
Thanks for all the help. I have now fixed the speed. For anyone with the same problem, make sure this box is checked.
但是,我的 RAM 仍然无法超过 1024 MB.有什么办法解决这个问题?
However, I still can't get my RAM above 1024 MB. What's the fix for that?
推荐答案
我发现在我用于开发的笔记本电脑和台式机上都可以使用的方法是,当您创建或编辑 Android Emulator (AVD) 时底部附近的一个选项,上面写着使用主机 GPU.
Method I've found which has worked on both my laptop and desktop that I use for development is when you create or edit the Android Emulator (AVD) there is an option near the bottom that says use Host GPU.
我发现它适用于所有 Android 版本
I've have found this to work on all Android versions
更新我错过了有关 RAM 问题的信息.您还没有说内存问题是否存在错误,但是如果您看到 failed to allocate memory: 8 那么您需要修改 AVD 配置.
UPDATEI missed the bit about the RAM problem. You haven't said if there is an error regarding the memory issue, but if you seeing failed to allocate memory: 8 then you need to modify the AVD config.
转到 C:Usersyour_name.androidavdavd_nameconfig.ini 并找到 hw.ramSize 并确保 MB 在数字的末尾.
Go to C:Usersyour_name.androidavdavd_nameconfig.ini and find hw.ramSize and make sure that MB is on the end of the number.
这篇关于提高 Android SDK 模拟器速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!