月食将成为附着在"启动活性QUOT;发送应用设备时。如何解决此问题? [英] Eclipse becomes stuck on "starting activity" when sending application to device. How to solve this?

查看:79
本文介绍了月食将成为附着在"启动活性QUOT;发送应用设备时。如何解决此问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候,当我试图在我的Droid费(姜饼运行),以润我的应用程序,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.

我能做些什么,以使它发射?它的工作原理只是罚款AVD的运行通过模拟器。

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" />


一定是你的主的活动里面present,否则将无法在仿真模式下启动。

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

2。您的AVD机有所损坏或ADB不稳定:
检查<一href=\"http://stackoverflow.com/questions/8290879/eclipse-not-running-android-app-on-emulator-a-second-time\">this问题。

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

这篇关于月食将成为附着在&QUOT;启动活性QUOT;发送应用设备时。如何解决此问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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