Eclipse变得卡在“起始活动”将应用程序发送到设备时。如何解决这个问题? [英] Eclipse becomes stuck on "starting activity" when sending application to device. How to solve this?

查看:201
本文介绍了Eclipse变得卡在“起始活动”将应用程序发送到设备时。如何解决这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候,当我尝试在我的Droid Charge(运行Gingerbread)上运行我的应用程序时,Eclipse会在控制台中显示以下内容:

Sometimes, when I attempt to "Run" my application on my Droid Charge (running Gingerbread), Eclipse displays the following in the console:

[2012-05-31 23:08:50 - SomeApp] Android Launch!
[2012-05-31 23:08:50 - SomeApp] adb is running normally.
[2012-05-31 23:08:50 - SomeApp] Performing com.test.SomeActivity activity launch
[2012-05-31 23:08:52 - SomeApp] Uploading SomeApp.apk onto device 'DEVICEIDHERE'
[2012-05-31 23:08:52 - SomeApp] Installing SomeApp.apk...
[2012-05-31 23:08:53 - SomeApp] Success!
[2012-05-31 23:08:53 - SomeApp] Starting activity com.test.SomeActivity on device DEVICEIDHERE

但是,应用程序永远不会在手机上启动。我无法看到.apk曾经安装在应用程序的列表中。

However, the application never starts up on the phone. I am not able to see the that the .apk ever installed in the application's list.

我可以做些什么来启动它?

What can I do to make it launch? It works just fine with AVD's running via the emulator.

谢谢!

推荐答案

我可以看到3种可能的方法来解决您的问题:

I can see 3 possible ways to give a try in solving your issue:

1。您是否检查了manifest.xml文件?
字段

1. Have you checked the manifest.xml file? The field

<category android:name="android.intent.category.LAUNCHER" />


必须存在于您的主活动中,否则将不在仿真模式下启动。

must be present inside your "main" activity, otherwise it will not launch in emulation mode.

2。您的AVD机器有些损坏或ADB不稳定:
检查这个问题。

3。您的项目可能会以某种方式失去同步性:
尝试清理(项目 - >清除)您的项目,以及重建并重新加载您的AVD。

3. Your project can be out of synchronization in some way: Try to cleanup (project->clean) your project as well as to rebuild it and reloading your AVD.

希望以某种方式帮助你...; D

Hope it helps you in some way... ;D

这篇关于Eclipse变得卡在“起始活动”将应用程序发送到设备时。如何解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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