月食将成为附着在"启动活性QUOT;发送应用设备时。如何解决此问题?月食、如何解决、活性、设备

2023-09-07 17:53:57 作者:握不住的沙,干脆散啦它

有时候,当我试图在我的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不稳定:检查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