加速 Android 模拟器
我在许多其他主题上读到 Android 模拟器启动速度非常慢。事实上,启动需要+15 分钟。然而,即使在那之后,我的机器上的速度也很慢。
“手机”的响应有 3-4 秒的延迟,一切都有很大的滞后。
有什么办法可以提高我的笔记本电脑(华硕1201N)的性能对于Android模拟器来说太生疏了?
PS:尝试了不同的模拟器分辨率,结果是相同的
编辑:我的笔记本电脑有 2 个具有超线程的核心。在设备管理器中显示为 4 CPU。然而,当使用模拟器时,只有一张图为 100%。我可以做点什么让它在多核上工作吗?
I read on many other topics that the Android emulator starts really slow. Indeed, it takes +15 mins to start. However, on my machine is slow even after that.
The 'phone' responds with a 3-4 seconds delay and everything has a huge lag.
Is there any way to improve the performance of my laptop (Asus 1201N) is too rusty for the Android emulator?
PS: Tried in different emulator resolutions and the result is the same
Edit: My laptop has 2 cores with HyperThreading. And it shows as 4 CPU in Device Manager. However, when using the emulator, just one of the graphs is at 100%. Can I do something to make it work multi core?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
您是否选中了“禁用启动动画”?
另外,如果这不能解决问题,那么有帮助的一件事是您在编码时实际上不必关闭模拟器屏幕。如果您在打开时单击“调试”,您的 APK 将上传到模拟器并立即启动。由于某种原因,我花了一段时间才发现我不必手动关闭模拟器。
Do you have "Disable Boot Animation" checked?
Also, if that doesn't fix it, one thing that helps is that you never actually have to close the emulator screen while you're coding. If you click debug when it's already open, your APK will get uploaded to the emulator and start pretty much immediately. For some reason it took me a while to figure out that I didn't have to manually close the emulator.
我了解到对我有帮助的一件事是,一旦模拟器从第一次调试运行中打开,您就不必关闭它。将其保持打开状态,在下次调试运行时,它将准备就绪,无需任何加载时间,就像您第一次打开它时一样。
至于启动后速度缓慢,我怀疑这只是你的电脑的问题。它对我来说运行得非常快。它在大约 20 秒或更短的时间内启动,一旦打开,我后续的调试加载速度会非常快。
我希望至少我的第一个建议可以帮助您保持一些理智。
One thing I learned that helped me is that once the emulator is open from your first debug run you DO NOT have to close it. Leave it open, and on your next debug run it will be ready to go without any load up time like when you first open it.
In regards to your slowness after startup I suspect it's just your computer. It runs very fast for me. It starts up in about 20 seconds or less, and once it's open my subsequent debugs load very fast.
I hope at least my first tip helps to save some of your sanity.
您可以尝试以下方法。它确实加快了我的模拟器速度,尤其是在加载时间。
我注意到模拟器仅使用可用 CPU 的单个核心。我所做的是将其设置为使用所有可用的处理器。
我使用的是 Windows 7。
Here's what you can try. It does speed up the emulator for me, especially during loading time.
I noticed the emulator is only using a single core of the available CPU. What I did is to set it to use all available processors.
I'm using Windows 7.
我认为有几种方法可以提高 Android 模拟器的性能,例如
希望它能帮助您提高性能并解决问题你的问题。
谢谢
I think there is few ways to improve the performance of your Android Emulator like
Hopefully it will help you to improve the performance and resolve your problems.
Thanks
我遇到了同样的问题,为了解决它,我只是禁用了“备件”下启用的所有过渡动画效果。
I had the same problem and in order to solve it I just disabled all the transition animation effects that are enabled under Spare Parts.
对我来说也太慢了。
(在我的 Pentium 4 (ubuntu) 和双核 64 笔记本电脑 (Windows 7) 上速度都很慢,
显然它使用 QEMU - 我可以查找图像文件并尝试不同版本的 qemu 吗?
我尝试的另一件事是:http://www.android-x86.org/(在 vmware 中)
这看起来快得多,但我无法让它看到网络!
(现在我只想在浏览器中测试一些网站,所以查看网络是必须的 - 我还没有做本机应用程序)
it is way too slow for me too.
(slow on both my Pentium 4 (ubuntu) and my dual core 64 laptop (Windows 7)
apparently it uses QEMU - could I perhaps look for the image file and try a different version of qemu?
Another thing I tried is this: http://www.android-x86.org/ (in vmware)
this seems MUCH faster but I can't get it to see the network!
(right now I just want to test some websites in the brower so seeing the network is a must - I'm not doing native apps just yet)
我发现我没有运行“调试”目标,而是运行“运行”目标。这样做时模拟器运行得更加流畅。我只会在确实需要时才进入调试模式。
I discovered that instead of running the 'Debug' target, I just run the 'Run' target. The emulator runs a lot smoother when doing so. I only jump into debug mode if I really need it.
要从 android-x86 连接到网络,您需要在控制台模式下使用此命令(Alt + F1)来手动设置 ip:
ifconfig eth0 netmask 255.255.255.0 up
执行此操作后,您可以通过在控制台中键入:netcfg 进行检查你可以看到这个ip是在你的本地wmware上设置的,
你可以通过ping你在命令提示符中设置的ip来检查它是否成功,之后,你可以使用adb connect将调试器连接到你的虚拟android
To connect to network from android-x86, you neek to manual setup ip manual by use this command in console mode (Alt + F1):
ifconfig eth0 netmask 255.255.255.0 up
after do that, you can check it by type : netcfg in console and you can see this ip is set at your local wmware
you can check it success by ping ip you had been set in command prompt, and after that, you can use adb connect to connect debugger to your virtual android