6

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

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.

Thank you!

4

2 回答 2

6

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

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. Your AVD machine is somewhat corrupted or the ADB is instable: Check this issue.

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.

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

于 2012-06-01T06:41:35.207 回答
0

I faced with this problem and solved that easily.

Solution: Just check that you have selected the root folder of android project in Package Explorer.

That's it.

于 2015-03-19T16:45:30.990 回答