简体   繁体   English

极慢的 AVD 完全分配资源

[英]Extremely slow AVD fully allocates resources

I'm beginner on Android applications.我是 Android 应用程序的初学者。 I followed the steps in tutorial and prepared development environment on Vista (Eclipse Helios + Android SDK 12 + JDK6).我按照教程中的步骤在 Vista 上准备了开发环境(Eclipse Helios + Android SDK 12 + JDK6)。

I created a minimal AVD with 32mb SD card and 128mb ram, enable snapshot.我用 32mb SD 卡和 128mb 内存创建了一个最小的 AVD,启用快照。 and set current AVD in run configurations of application as automatically.并在应用程序的运行配置中将当前 AVD 设置为自动。

Emulator is extremely slow and CPU usage 100% shared by eclipse and emulator, memory consume is also in limit.模拟器非常慢,eclipse 和模拟器共享 CPU 使用率 100%,memory 消耗也受到限制。

Do you have any suggestion to optimize it?你有什么优化它的建议吗? It's my first step in development android app, and i don't want to be discouraged.这是我开发 android 应用程序的第一步,我不想气馁。

Thanks a lot, Semanur非常感谢, Semanur

You can use Bluestacks App player or Youwave For Android.您可以使用 Bluestacks App player 或 Youwave For Android。 Those emulators are very much faster than eclipse emulators.这些仿真器比 eclipse 仿真器快得多。 You will find that they are most likely runnning your app on a real phone.您会发现他们最有可能在真机上运行您的应用程序。

you can download and install genymotion virtual device,, it is 3x faster then normal AVD您可以下载并安装 genymotion 虚拟设备,它比普通 AVD 快 3 倍

Emulators use significant resources but with a medium computer it should run ok.模拟器使用大量资源,但使用中型计算机应该可以正常运行。 Try creating a new emulator instance with default settings, HVGA and no snapshot and no sd card.尝试使用默认设置、HVGA、无快照和无 sd 卡创建一个新的模拟器实例。 Use android 2.2 for this test.使用 android 2.2 进行此测试。

This one should run pretty smoothly on a medium computer.这个应该在中型计算机上运行得非常顺利。

Let us know the results.让我们知道结果。

As everyone else has stated, the emulator is terrible for testing.正如其他人所说,模拟器对于测试来说很糟糕。 I'd suggest debugging on a device, even if that means only being able to test one API and screen size.我建议在设备上进行调试,即使这意味着只能测试一个 API 和屏幕尺寸。

Launching from a snapshot is also a way of cutting the loading time and resource load on the CPU.从快照启动也是一种减少 CPU 加载时间和资源负载的方法。 I found it to still take a considerate amount of time still, but it is less than half of what it took before.我发现它仍然需要相当长的时间,但还不到以前的一半。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM