新安装的Eclipse和Android SDK.无法让模拟器工作.挂在时钟屏幕上

Ali*_*ice 6 android android-emulator

我对开发很陌生.

我已经安装了Eclipse和Andoid SDK.但是,我无法让模拟器工作.我已经尝试过示例记事本代码和Hello Android教程代码.每次我尝试运行任一应用程序时它只挂在时钟屏幕上(屏幕也说充电50%并有一个挂锁).

以下是示例记事本应用程序的控制台信息.

[2011-03-11 15:27:17 - samplenotpad] ------------------------------
[2011-03-11 15:27:17 - samplenotpad] Android Launch!
[2011-03-11 15:27:17 - samplenotpad] adb is running normally.
[2011-03-11 15:27:17 - samplenotpad] Performing com.example.android.notepad.NotesList activity launch
[2011-03-11 15:27:17 - samplenotpad] Automatic Target Mode: launching new emulator with compatible AVD 'myEmulator3'
[2011-03-11 15:27:17 - samplenotpad] Launching a new emulator with Virtual Device 'myEmulator3'
[2011-03-11 15:27:19 - samplenotpad] New emulator found: emulator-5556
[2011-03-11 15:27:19 - samplenotpad] Waiting for HOME ('android.process.acore') to be launched...
[2011-03-11 15:27:33 - Emulator] emulator: emulator window was out of view and was recentred
[2011-03-11 15:27:33 - Emulator] 
[2011-03-11 15:28:17 - samplenotpad] HOME is up on device 'emulator-5556'
[2011-03-11 15:28:17 - samplenotpad] Uploading samplenotpad.apk onto device 'emulator-5556'
[2011-03-11 15:28:17 - samplenotpad] Installing samplenotpad.apk...
[2011-03-11 15:29:09 - samplenotpad] Success!
[2011-03-11 15:29:10 - samplenotpad] Starting activity com.example.android.notepad.NotesList on device emulator-5556
Run Code Online (Sandbox Code Playgroud)

没什么......


我已经从这个页面尝试了以下步骤,但仍然无法正常工作.

http://developer.android.com/guide/appendix/faq/troubleshooting.html#eclipse

Eclipse不是在与模拟器交谈

当Eclipse和模拟器之间似乎没有发生通信时,症状可能包括:当您按下运行时,没有任何事情发生,模拟器挂起等待调试器连接,或者Eclipse报告无法找到模拟器或贝壳.到目前为止,最常见的症状是当您按下运行时,模拟器启动(或已经运行),但应用程序无法启动.

您可能会发现这些步骤中的任何一个都可以解决问题,而且通过练习您可能会找出您需要为特定问题做哪一个,但首先,最安全的选择是按顺序运行所有这些步骤:

  • 如果模拟器正在运行,请退出
  • 检查是否有任何模拟器进程被终止(有时它们可​​以挂起,在unix或mac上使用ps,或在windows上的进程视图中使用任务管理器).
  • 退出Eclipse在命令行中键入:adb kill-server,启动Eclipse并重试

想知道我是否需要尝试卸载并重新安装某些组件?

我正在运行Windows 7.

任何帮助非常感谢 - 请尽可能简单的英语语言:-)

小智 14

你在解锁屏幕吗?您是否解锁了"手机"您需要用鼠标拖动解锁按钮,方法是单击按钮,然后向右拖动


Roh*_*wal -1

看来内存资源不足以运行模拟器。您可以做的一件事是,当模拟器第一次挂起时,只需将其关闭,然后重新启动即可。之后,转到任务管理器并将模拟器和 adb 优先级设置为实时。