java - eclipse 中的模拟器不会运行项目

标签 java android eclipse

编辑:通过修复版本解决了一些问题,但仍然出现错误,因为程序在强制关闭之前非常短暂地打开。我已经上传了 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'!

最佳答案

我认为问题不在于项目,而在于模拟器。尝试重新创建一个 AVD。我以前遇到过这个问题,我想这对我有帮助。

关于java - eclipse 中的模拟器不会运行项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9202466/

相关文章:

java - JPanel图像从屏幕飞走

java - 使用模式根据模式重新排序 XML 文档的元素

java - JAX-RS:从具有声明的抽象返回类型的方法返回具体类实例

android - 当 Retrofit 请求失败或成功时,如何在 Repository 和 ViewModel 类之间进行通信?

android - android.arch.lifecycle :common Version Conflicts?如何解决

android - 亚行外壳 : How do I get a list of BroadcastReceivers that will receive BOOT_COMPLETED Intent?

android - 谷歌地图在 android 上不断出现黑屏

c - fatal error : stdio. h 没有这样的文件或目录

Eclipse 执行干净的构建而不是增量构建

java - 如何将字节数组转换为 double 并返回?