Android:如何找出应用程序启动失败的原因?

发布于 2024-11-06 02:11:09 字数 816 浏览 1 评论 0原文

我正在尝试在 Android 模拟器上启动一个简单的测试应用程序(在 Windows 上的 Eclipse 3.6 中开发)。

以下是 logcat 结果:

[2011-05-11 11:35:49 - androidtest] Android Launch!
[2011-05-11 11:35:49 - androidtest] adb is running normally.
[2011-05-11 11:35:49 - androidtest] Performing androidtest.AndroidTestActivity activity launch
[2011-05-11 11:35:49 - androidtest] Automatic Target Mode: Preferred AVD 'HTC_Incredible' is available on emulator 'emulator-5554'
[2011-05-11 11:35:49 - androidtest] Uploading androidtest.apk onto device 'emulator-5554'
[2011-05-11 11:35:49 - androidtest] Installing androidtest.apk...
[2011-05-11 11:38:40 - androidtest] Failed to install androidtest.apk on device 'emulator-5554!
[2011-05-11 11:38:40 - androidtest] (null)
[2011-05-11 11:38:41 - androidtest] Launch canceled!

如何确定本次启动失败的原因?

I am attempting to launch a simple test app on the Android emulator (developing in Eclipse 3.6 on Windows).

Here is the logcat result:

[2011-05-11 11:35:49 - androidtest] Android Launch!
[2011-05-11 11:35:49 - androidtest] adb is running normally.
[2011-05-11 11:35:49 - androidtest] Performing androidtest.AndroidTestActivity activity launch
[2011-05-11 11:35:49 - androidtest] Automatic Target Mode: Preferred AVD 'HTC_Incredible' is available on emulator 'emulator-5554'
[2011-05-11 11:35:49 - androidtest] Uploading androidtest.apk onto device 'emulator-5554'
[2011-05-11 11:35:49 - androidtest] Installing androidtest.apk...
[2011-05-11 11:38:40 - androidtest] Failed to install androidtest.apk on device 'emulator-5554!
[2011-05-11 11:38:40 - androidtest] (null)
[2011-05-11 11:38:41 - androidtest] Launch canceled!

How can I determine why this launch failed?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

踏月而来 2024-11-13 02:11:09

这看起来像 Eclipse 控制台输出,而不是 LogCat。 LogCat 输出可能会提供有关问题所在的线索。

根据我的经验,adb 在运行一段时间后并不总是能正常工作,因此终止 adb.exe 进程并重新启动它可能也会有所帮助。

This looks like the Eclipse Console output and not the LogCat. The LogCat output might provide a clue to what goes wrong.

I know from experience that the adb doesn't always work properly when it has been running for a while, so killing the adb.exe process and restarting it might also help.

离鸿 2024-11-13 02:11:09

此问题的唯一答案:

这是一个常见问题,模拟器有时会与 eclipse 断开连接,无法上传和安装 apk 文件,要解决此问题,只需关闭模拟器并重新运行即可。

我自己也遇到过很多次同样的事情:)

The single answer to this problem:

This is a common problem that the emulator sometimes get disconnected from eclipse and uploading and installing of apk file can't be done, to resolve this just close the emulator and run again.

I've faced the same many times myself:)

万劫不复 2024-11-13 02:11:09

当您尝试运行第一个应用程序时,第一次出现此问题。可能是因为虚拟设备和.apk文件之间断开连接。尝试关闭模拟器并重新启动它或删除模拟器并创建新的模拟器。

This problem is appear first time when you try to run your first application. It may be because of disconnection between the virtual device and .apk file. try to close the emulator and restart it or delete the emulator and create new emulator.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文