Android模拟器非常慢

时间:2021-06-30 15:35:50

My laptop: Intel Core 2 Duo CPU, 2GHz, 1GB RAM.

我的笔记本电脑:Intel Core 2 Duo CPU,2GHz,1GB RAM。

I created a target with SD Card 512MB, Device RAM size 512, snapshot enabled. I waited for 30 minutes but the emulator doesn't ends up loading. It keeps showing a flash word "Android" on the black screen.

我创建了一个目标,SD卡512MB,设备RAM大小512,启用了快照。我等了30分钟,但模拟器最终没有加载。它一直在黑屏上显示一个闪光字“Android”。

Before running the emulator, I closed most other programs.

在运行模拟器之前,我关闭了大多数其他程序。

What's wrong with it? This is very frustrating. :(

它出什么问题了?这非常令人沮丧。 :(

7 个解决方案

#1


2  

It shouldn't take more than 5-10min at most to build the emulator on initial startup. The SD card size has no effect on memory usage, it's not loaded into memory, it just creates a larger image file for the sdcard. Setting the emulator to have 256mb of ram will help, but in general when I have the same problem I just close down the emulator window and re-start it. Sometimes it just gets hung-up on creation and isn't a memory issue (I have 16gb of ram and still have the problem from time to time)

在初始启动时构建模拟器最多不应超过5-10分钟。 SD卡大小对内存使用没有影响,它没有加载到内存中,只是为SD卡创建了一个更大的图像文件。将模拟器设置为256mb的ram会有所帮助,但一般情况下,当我遇到同样的问题时,我只需关闭模拟器窗口并重新启动它。有时它只是在创建时挂起而不是内存问题(我有16GB的内存并且仍然有问题)

#2


3  

What is your CPU and RAM usage during startup? Do you have a lot of IO swapping occurring? Considering that Windows needs at least 512 to run right half of the time and Eclipse is a memory hog you probably just need more RAM.

启动期间您的CPU和RAM使用量是多少?你有很多IO交换吗?考虑到Windows需要至少512个运行时间的一半而Eclipse是一个内存占用你可能只需要更多的RAM。

#3


2  

You're assigning the emulated Android instance half of the physical memory on your machine. Get more memory.

您将模拟的Android实例分配给计算机上一半的物理内存。获得更多记忆。

#4


2  

Emulator is in general very slow, and the higher the OS version on the emulator, the slower it gets. I'm a game developer, and with my AMD Athlon X3 2.90 GHz with 4GB RAM it gives me 5-6 fps. I tried to open one of my apps on Honeycomb emulator, and it was really terrible. It opened, but I couldn't do anything with it. So the best answer is purchasing a real device.

仿真器通常非常慢,仿真器上的OS版本越高,它就越慢。我是一名游戏开发人员,凭借我的AMD Athlon X3 2.90 GHz和4GB RAM,它给了我5-6 fps。我试图在Honeycomb模拟器上打开我的一个应用程序,这真的很糟糕。它打开了,但我无法做任何事情。所以最好的答案是购买真正的设备。

#5


1  

I've experienced the same thing and in my case I had to set "Min SDK Version" when creating the project in Eclipse. Without this setting the emulator didn't start.

我经历过同样的事情,在我的情况下,我必须在Eclipse中创建项目时设置“Min SDK Version”。没有此设置,模拟器无法启动。

#6


0  

The native Android emulator is really slow. It's much faster if you use Android on a virtual machine. You can follow my detailed guide on setting it up. http://www.bobbychanblog.com/2011/07/faster-android-emulator-alternative-using-virtualbox/

原生Android模拟器非常慢。如果您在虚拟机上使用Android,速度会快得多。您可以按照我的详细指南进行设置。 http://www.bobbychanblog.com/2011/07/faster-android-emulator-alternative-using-virtualbox/

#7


0  

Android Development Tools (ADT) 9.0.0 (or later) has a feature that allows you to save state of the AVD (emulator), and you can start your emulator instantly. You have to enable this feature while creating a new AVD or you can just create it later by editing the AVD.

Android开发工具(ADT)9.0.0(或更高版本)具有允许您保存AVD(模拟器)状态的功能,您可以立即启动模拟器。您必须在创建新AVD时启用此功能,或者稍后可以通过编辑AVD来创建它。

Also I have increased the Device RAM Size to 1024 which results in a very fast emulator.

此外,我已将设备RAM大小增加到1024,从而实现了非常快速的仿真器。

Refer the given below screenshots for more information.

有关详细信息,请参阅下面给出的屏幕截图。

Android模拟器非常慢

Android模拟器非常慢

And for speeding up your emulator you can refer to Speed up your Android Emulator!:

为了加速你的模拟器你可以参考加速你的Android模拟器!:

#1


2  

It shouldn't take more than 5-10min at most to build the emulator on initial startup. The SD card size has no effect on memory usage, it's not loaded into memory, it just creates a larger image file for the sdcard. Setting the emulator to have 256mb of ram will help, but in general when I have the same problem I just close down the emulator window and re-start it. Sometimes it just gets hung-up on creation and isn't a memory issue (I have 16gb of ram and still have the problem from time to time)

在初始启动时构建模拟器最多不应超过5-10分钟。 SD卡大小对内存使用没有影响,它没有加载到内存中,只是为SD卡创建了一个更大的图像文件。将模拟器设置为256mb的ram会有所帮助,但一般情况下,当我遇到同样的问题时,我只需关闭模拟器窗口并重新启动它。有时它只是在创建时挂起而不是内存问题(我有16GB的内存并且仍然有问题)

#2


3  

What is your CPU and RAM usage during startup? Do you have a lot of IO swapping occurring? Considering that Windows needs at least 512 to run right half of the time and Eclipse is a memory hog you probably just need more RAM.

启动期间您的CPU和RAM使用量是多少?你有很多IO交换吗?考虑到Windows需要至少512个运行时间的一半而Eclipse是一个内存占用你可能只需要更多的RAM。

#3


2  

You're assigning the emulated Android instance half of the physical memory on your machine. Get more memory.

您将模拟的Android实例分配给计算机上一半的物理内存。获得更多记忆。

#4


2  

Emulator is in general very slow, and the higher the OS version on the emulator, the slower it gets. I'm a game developer, and with my AMD Athlon X3 2.90 GHz with 4GB RAM it gives me 5-6 fps. I tried to open one of my apps on Honeycomb emulator, and it was really terrible. It opened, but I couldn't do anything with it. So the best answer is purchasing a real device.

仿真器通常非常慢,仿真器上的OS版本越高,它就越慢。我是一名游戏开发人员,凭借我的AMD Athlon X3 2.90 GHz和4GB RAM,它给了我5-6 fps。我试图在Honeycomb模拟器上打开我的一个应用程序,这真的很糟糕。它打开了,但我无法做任何事情。所以最好的答案是购买真正的设备。

#5


1  

I've experienced the same thing and in my case I had to set "Min SDK Version" when creating the project in Eclipse. Without this setting the emulator didn't start.

我经历过同样的事情,在我的情况下,我必须在Eclipse中创建项目时设置“Min SDK Version”。没有此设置,模拟器无法启动。

#6


0  

The native Android emulator is really slow. It's much faster if you use Android on a virtual machine. You can follow my detailed guide on setting it up. http://www.bobbychanblog.com/2011/07/faster-android-emulator-alternative-using-virtualbox/

原生Android模拟器非常慢。如果您在虚拟机上使用Android,速度会快得多。您可以按照我的详细指南进行设置。 http://www.bobbychanblog.com/2011/07/faster-android-emulator-alternative-using-virtualbox/

#7


0  

Android Development Tools (ADT) 9.0.0 (or later) has a feature that allows you to save state of the AVD (emulator), and you can start your emulator instantly. You have to enable this feature while creating a new AVD or you can just create it later by editing the AVD.

Android开发工具(ADT)9.0.0(或更高版本)具有允许您保存AVD(模拟器)状态的功能,您可以立即启动模拟器。您必须在创建新AVD时启用此功能,或者稍后可以通过编辑AVD来创建它。

Also I have increased the Device RAM Size to 1024 which results in a very fast emulator.

此外,我已将设备RAM大小增加到1024,从而实现了非常快速的仿真器。

Refer the given below screenshots for more information.

有关详细信息,请参阅下面给出的屏幕截图。

Android模拟器非常慢

Android模拟器非常慢

And for speeding up your emulator you can refer to Speed up your Android Emulator!:

为了加速你的模拟器你可以参考加速你的Android模拟器!: