Android应用程序无法在Eclipse启动 [英] Android application doesn't start from Eclipse

查看:141
本文介绍了Android应用程序无法在Eclipse启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在û开始:我搜索的谷歌和计算器,他们没有给明确的答案

Before u start: I searched the google and stackoverflow, none of them gave clear answer.

情况:我使用的Eclipse Windows上开发Android应用程序。所以,当我试图运行应用程序时,系统输出到控制台

Situation: I'm using Eclipse on Windows to develop Android application. So when I'm trying to run the app, the system outputs to console

[2010-06-14 17:04:39 - HelloLinearLayout] ------------------------------
[2010-06-14 17:04:39 - HelloLinearLayout] Android Launch!
[2010-06-14 17:04:39 - HelloLinearLayout] adb is running normally.
[2010-06-14 17:04:39 - HelloLinearLayout] Performing com.example.HelloLinearLayout.HelloLinearLayout activity launch
[2010-06-14 17:04:39 - HelloLinearLayout] Automatic Target Mode: launching new emulator with compatible AVD 'Default_2.1'
[2010-06-14 17:04:39 - HelloLinearLayout] Launching a new emulator with Virtual Device 'Default_2.1'

启动模拟器,但不上传的apk并且不启动的活性。因此,应用程序无论如何都不会启动。

starts the emulator, but doesn't upload the .apk and doesn't start the activity. So, app is not started anyway.

我发现了一个解决方案这里,但它的不明确,似乎不起作用。例如,我不知道,这仿真处理,目的是要杀死。我只找到adb.exe。这是最主要的一点:有时我很幸运地杀死了所有他们想要的,启动应用程序。但它是不确定的。

I found a "solution" here, but it's unclear and seems to not work. For example, I don't know, which "emulator processed" are meant to be killed. I found adb.exe only. And that's the main point: sometimes I'm lucky enough to kill all that they wanted and start the app. But it's undetermined.

请帮忙,我完全被卡住这个麻烦了。

Please help, I'm completely stuck with this trouble.

推荐答案

我碰到的这种情况很多时候,不得不做几件事情来解决问题。

I've run into this situation many times and have had to do several things to resolve the issue.

1)如果DDMS运行,关闭它(这似乎干扰调试有时)。

1) If DDMS is running, close it (it seems to interfere with debugging sometimes).

2)启动模拟器,尝试与DDMS连接,然后断开,然后回到Eclipse和启动debuggerer。

2) Start the emulator, try connecting with DDMS, then disconnect, then go back to eclipse and start the debuggerer.

3)杀死模拟器,杀在任务管理器的亚行过程中,重新启动Eclipse,然后尝试调试让Eclipse中启动模拟器,该模拟器时代有时第一次加载出来,所以当它完全启动后,重新开始调试。

3) Kill the emulator, kill the adb process in task manager, restart eclipse, then try debugging letting Eclipse launch the emulator, sometimes the first load of the emulator times out so when it's fully started up, start debugging again.

总体来说,我发现这是很容易不使用仿真器,用实际设备,对我来说这是一个速度更快的过程。

Overall though, I've found it is much easier to not use the emulator and use an actual device, for me it's a much faster process.

这篇关于Android应用程序无法在Eclipse启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆