Eclipse becomes stuck on “starting activity” when sending application to device. How to solve this?

你。 提交于 2019-12-23 09:08:43

问题


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!


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/10845365/eclipse-becomes-stuck-on-starting-activity-when-sending-application-to-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!