编辑:通过修复版本,已经解决了一些问题,但是程序在打开后很快就被强制关闭了,仍然出现错误。我上传了一个logcat中给出的错误截图:http://i44.tinypic.com/2ci70w4.png
-- 我将一个下载的项目导入到eclipse中,并且有正确的sdk,因为之前我已经在模拟器上运行过一些东西。然而,这个项目却不能运行。如果有人需要实际的包,我可以提供链接,如果您愿意看一下它(只有六个非常简短的代码文件)。无论如何,当我运行时,这些是我在控制台中得到的消息。非常感谢任何帮助。
2012-02-08 20:46:46 - GoalManager] ------------------------------
[2012-02-08 20:46:46 - GoalManager] Android Launch!
[2012-02-08 20:46:46 - GoalManager] adb is running normally.
[2012-02-08 20:46:46 - GoalManager] Performing com.android.sample.goalmanager.LoginActivity activity launch
[2012-02-08 20:46:46 - GoalManager] Automatic Target Mode: launching new emulator with compatible AVD 'droidX2'
[2012-02-08 20:46:46 - GoalManager] Launching a new emulator with Virtual Device 'droidX2'
[2012-02-08 20:46:50 - Emulator] emulator: emulator window was out of view and was recentered
[2012-02-08 20:46:50 - Emulator]
[2012-02-08 20:46:50 - GoalManager] New emulator found: emulator-5554
[2012-02-08 20:46:50 - GoalManager] Waiting for HOME ('android.process.acore') to be launched...
[2012-02-08 20:46:51 - GoalManager] emulator-5554 disconnected! Cancelling 'com.android.sample.goalmanager.LoginActivity activity launch'!
java.lang.RuntimeException unable to start activity Component
... 然而,这一行在那之后被截断了,但它很可能指示了它失败的位置。 - ThomasW