Android with Eclipse - 等待 HOME ('android.process.acore') 启动?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12799846/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 12:06:53  来源:igfitidea点击:

Android with Eclipse - Waiting for HOME ('android.process.acore') to be launched?

androideclipse

提问by vauge

When I try to run the Hello World app with Eclipse, the Console shows "Waiting for HOME ('android.process.acore') to be launched...", but even if I wait for half an hour, nothing happens except for the emulator showing the "Android"-logo on a black background. The same happens when I try to start the emulator directly via AVD Manager. The PATH variable is set correctly, I've installed the newest versions of both eclipse and the Android SDK.

当我尝试使用 Eclipse 运行 Hello World 应用程序时,控制台显示“正在等待 HOME ('android.process.acore') 启动...”,但即使我等待半小时,除了在黑色背景上显示“Android”标志的模拟器。当我尝试通过 AVD 管理器直接启动模拟器时,也会发生同样的情况。PATH 变量设置正确,我已经安装了最新版本的 eclipse 和 Android SDK。

What could possibly be the reason for this to happen?

发生这种情况的原因可能是什么?

Thanks!

谢谢!

采纳答案by RajeshVijayakumar

Problem is in SD Card follow this steps,

问题出在 SD 卡中,请按照以下步骤操作,

1) Select Windowoption from eclipse menubar

1)从eclipse菜单栏中选择Window选项

2) Goto AVD Managerand select the emulator(which got probs after started).

2)转到AVD管理器并选择模拟器(启动后有问题)。

3) After selecting Emulator, click Editbutton which is on your right hand side of the AVD Manager

3) 选择Emulator 后,单击AVD Manager 右侧的Edit按钮

4) Goto SD Card Sizegive 128and then click 'Edit AVD' option down

4)转到SD卡大小给予128,然后单击“编辑AVD”选项下

5) And restartyour emulator

5)然后重启你的模拟器

回答by Manoj Shrestha

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

当我在“仿真选项:”下选择“使用主机 GPU”选项时,它对我有用。

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

您可以在虚拟设备的编辑窗口下找到该选项。

enter image description here

在此处输入图片说明

回答by mcmonkeys1

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

“等待 HOME('android.process.acore')启动......”

I found that the keyword here is 'wait'. I gave up waiting many times on a slower laptop. When I switched to a faster desktop and left it alone for a good while the emulator eventually booted up. Think how long it takes your android device to boot up, then consider that is running as an emulated ARM processor + the rest of the SoC architecture, on just 1 core of your actual real life x86 processor.

我发现这里的关键字是“等待”。我多次放弃在较慢的笔记本电脑上等待。当我切换到更快的桌面并在模拟器最终启动时将其放置一段时间。想想你的 android 设备启动需要多长时间,然后考虑它作为模拟 ARM 处理器 + SoC 架构的其余部分运行,仅在你实际生活中的 x86 处理器的 1 个核心上运行。

Also, I was giving the SD card a GB or so "just in case", this just slowed it down even more as it had to allocate this space on the slow laptop hard drive before it even began booting the emulator.

另外,我给了 SD 卡一个 GB 左右的“以防万一”,这只会减慢它的速度,因为它甚至在开始启动模拟器之前必须在慢速笔记本电脑硬盘上分配这个空间。

Just being a little patient worked for me, and once the emulator is up and running don't close it! You can simply close the program you are testing on the virtual device and then re-upload/install with eclipse again and again as you test your code.

只是有点耐心为我工作,一旦模拟器启动并运行不要关闭它!您可以简单地关闭您在虚拟设备上测试的程序,然后在测试代码时一次又一次地重新上传/安装 eclipse。

回答by FraZer

Try the path it can be the issue.

尝试可能是问题的路径。

My advice - if you having an android phone.. please usb debug it and Debug your application on your phone. You will feel relieved from the long durations of the emulator to

我的建议 - 如果你有一部安卓手机..请用 USB 调试它并在你的手机上调试你的应用程序。长时间使用模拟器后,您会感到安心

回答by Nyoman Aditya Tripalguna

Are you sure the path is set correctly? The path variable should be set to both SDKHOME/tools and SDKHOME/platform-tools, where SDKHOME is your android sdk home folder.

您确定路径设置正确吗?路径变量应设置为 SDKHOME/tools 和 SDKHOME/platform-tools,其中 SDKHOME 是您的 android sdk 主文件夹。

Most of the time, people forget this and just set the path to /platform-tools or the other one only.

大多数时候,人们忘记了这一点,只是将路径设置为 /platform-tools 或仅另一个。

回答by user2320724

Another possibility may be that your computer is running out of disk space.

另一种可能是您的计算机磁盘空间不足。

回答by user3475343

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

等待 HOME ('android.process.acore') 启动...

I did not run my emulator then I start to run my app. But my emulator stayed black screen and there are console ms "Waiting for HOME ('android.process.acore') to be launched...".

我没有运行我的模拟器然后我开始运行我的应用程序。但是我的模拟器一直黑屏,控制台显示“正在等待 HOME ('android.process.acore') 启动...”。

I stop my app then I setup my emulator before I run my app. It run perfect.

我停止我的应用程序,然后在运行我的应用程序之前设置我的模拟器。它运行完美。

Run your emulator first from Window -> AVD Manager -> (select your emulator)Start

首先从 Window -> AVD Manager ->(选择你的模拟器)开始运行你的模拟器

Done.

完毕。