等待 HOME (‘ android.process.acore’)启动

我尝试使用 HelloWorld 应用程序,但是模拟器在 Android 启动屏幕上闪烁之后就停止了。没有显示主页。控制台上的最后一个显示是

等待 HOME (‘ android.process.acore’)启动..。

我再次尝试重新安装 Eclipse 和 Android。还是没用。此外,控制台不显示任何错误。Log cat 有以下错误:

06-1820:39:11.543: ERROR/flash _ image (544) : 无法找到恢复分区 06-1820:39:11.843: ERROR/vold (538) : 错误打开开关名称路径’/sys/class/switch/test2’(没有这样的文件或目录) 06-1820:39:11.843: ERROR/vold (538) : 错误引导开关’/sys/class/switch/test2’(m) 06-1820:39:11.843: ERROR/vold (538) : 错误打开开关名称路径’/sys/class/switch/test’(没有这样的文件或目录) 06-1820:39:11.843: ERROR/vold (538) : 错误引导开关’/sys/class/switch/test’(m) 06-1820:46:31.842: ERROR/Memory HeapBase (578) : ERROR open/dev/pmem: No such file or directory 06-1820:46:31.842: ERROR/Memory HeapBase (578) : 错误打开/dev/pmem: 没有这样的文件或目录 06-1820:46:31.892: ERROR/SurfaceFlinger (578) : 不能打开/sys/power/wait _ for _ fb _ sleep 或/sys/power/wait _ for _ fb _ wake 06-1820:46:32.313: ERROR/GLLogger (578) : 无法加载库(无法找到库) 06-1820:46:33.634: ERROR/GLLogger (578) : 无法加载库(无法找到库)

111736 次浏览

I faced the same problem. However, it worked after i went to Project->Clean... Don't know why it happened though. Hope this helps

The solution which worked for me is, when you get the message:

Waiting for HOME ('android.process.acore') to be launched...

Wait for few seconds and then right click on the project and click run as Android application once again.

This problem occurs because while creating the AVD manager in the "Create new Android virtual device(AVD)" dialog window ,"Snapshot" was marked as "Enabled" by me.

Solution:

Create a new AVD manager with the "Enabled" checkbox not checked and then try running the project with the newly created AVD manager as "Target" , the problem will not occur anymore

I increased the virtual device SD card size from 500MB to 2GiB, the problem solved.

What worked for me was to delete the AVD from the AVD manager and create a new one. Then go to
Run >Run Configurations, select the target tab and choose the new AVD.

I get this problem all the time and have lost many hours of potential productivity and education while I try to fix it. The only thing that works for me is the combination of three other good answers:

  1. Project -> Clean
  2. Delete all the AVDs and create new ones
  3. If an attempt to run still hangs too long on 'Waiting for HOME' (over two minutes) or the emulator keeps rebooting every minute or so, try Run as Android App several times, choosing the same existing emulator instance (I always choose runs manually).

It's odd that no one has a clue why this problem comes up, what causes it or what is going on internally. The only clue I can supply is that DDMS shows a few lines like "Class not found for preloading: libcore.base.CollectionUtils" during the 'Waiting for HOME' pause.

Following steps worked for me: 1. Goto Project -> Clean. 2. Delete your previous AVD and create a new one.

Following steps worked for me: 1. Goto Project -> Clean. 2. Delete your previous AVD and create a new one.

Options:

  • Click on the HOME Button on the Emulator. Wait for may be 2 seconds.... This always works for me!!!

or

  • Go with Shreya's suggestion (one with most suggestions and edited by Gray).

I had only 12 Mb for the SD Card in the AVD device.

Increasing it to 2 Gb solved the issue.

SOLUTION:

Run the emulator from the command line:

sdk/tools> ./emulator-x86 -avd <DeviceName> -partition-size 1024 -gpu on

Then I launched the app from the command line as well (using built-in Cordova/PhoneGap tools):

myapp/cordova> ./run

BACKGROUND

I believe this is some sort of hardware compatibility issue. I came across this problem when following the PhoneGap 2.4.0 Getting Started Instructions. I followed their advice to install the Intel Hardware Accelerated Execution Manager, and I think this is the source of my trouble. Eclipse uses the emulator64-x86 program (in the sdk/tools folder) to launch the emulator. I could not find any way inside of Eclipse to change this but I found by following the "Tips & Tricks" section of the Intel HAXM web page that I could get the emulator to run successfully from the command line by using the emulator-x86 program instead. I'm not sure why the emulator64-x86 program doesn't work on my system. I confirmed at the Apple website that I do have a 64-bit processor.

My system:

  • OSX 10.6.8
  • 2x2.26 GHx Quad-core Intel Xeon
  • 6 GB RAM
  • ADT v21.1.0-569685
  • Eclipse 3.8.0

My AVD:

  • Device: Nexus One
  • Target: Android 4.2.2 - API Level 17
  • CPU: Intel Atom (x86)
  • RAM: 512
  • Internal Storage: 256
  • SD Card: 128

None of these solutions worked for me. Instead, what worked was to go to a command line tool (or terminal in Mac), CD into the SDK/platform-tools directory, and then run this:

adb kill-server

then run this:

adb start-server

After I did this everything worked again. Why? Who knows.

On my MAC the path to the platform-tools folder was $HOME/Installations/adt-bundle-mac-x86_64-20130522/sdk/platform-tools It will probably be somewhere else on your machine.

I also found this page that presents some helpful steps:

http://android.okhelp.cz/android-emulator-wont-run-application-started-from-eclipse/

I created a new device. Deleted the previous one.

What worked for me was enabling the checkbox "Use Host GPU" when creating or editing the AVD (Android Virtual Device). This checkbox was not enabled by default.

I solved this issue by creating a new virtual device and launching it from the AVD manager. The device takes a few minutes to start, you just have to wait. Then you can run your application on the already started device.

I noticed this is an old post. However I just ran into the same problem and found a solution. A) Make sure you have the CPU/ABI is atom B)Ram is 2048 C)VM Heap is 256 D)Internal Storage is 200 E)Make sure to check the Use Host GPU F)Device is Nexus 5 (My personal choice) G)Android 4.4.2 API Level 19

It worked for me when I selected 'Use Host GPU' option under 'Emulation Options:'.

You can find the option under Edit window of the virtual device.

enter image description here