Eclipse gets stuck when trying to launch Android a

2019-01-10 12:02发布

I'm trying to run helloandroid application on a Motorola Milestone A853. I typed "adb devices" and the mobile is properly recognized. However, when I try to run the application Eclipse always stuck at 27% "Launching delegate".

Which could be the reason?

9条回答
别忘想泡老子
2楼-- · 2019-01-10 12:35

Had the same 27% problem with an emulator. It only got fixed after I deleted the AVD and recreated it, so this is very likely device/emulator related (and furthermore restarting the ADB did not fix the problem).

EDIT:

Found this over at project pages as Issue #21073, answered by benpar:

Update: This scenario can also be avoided if the AVD emulator is launched from the AVD Manager within Eclipse. The issue happens when launching the first emulator from the Run button in Eclipse.

To avoid:

  1. Start Eclipse
  2. Window -> AVD Manager
  3. Start an emulator
  4. Run the project
查看更多
看我几分像从前
3楼-- · 2019-01-10 12:37

Very annoying problem. I was having to close down eclipse and the emulator and then start up again which became time consuming. Came here and read what Anna Lear and Vinay posted. Worked! I think in my case this problem happened because I exited eclipse while the emulator was still running. To correct, as Anna and Vinay posted, do this...

Make sure eclipse and emulator are shut down, then...

  1. start elipse
  2. start emulator
  3. quit eclipse (do not quit the emulator)
  4. start eclipse
  5. now run your program (should load 100% and not get stuck)
查看更多
可以哭但决不认输i
4楼-- · 2019-01-10 12:39

I was using Samsung Galaxy to run the app. I wasted a lot of time in running app but it was not launching and i had to restart eclipse every time. For me, i just follow these steps and there was no problem any more

  • removed my device from my PC
  • Run the app
  • When it asks for attach your device or create AVD.
  • I reconnect my device and select for output.
  • Finally i resolved the issue
查看更多
Luminary・发光体
5楼-- · 2019-01-10 12:48

I also had this problem when running an application in the emulator. Make sure the emulator is running BEFORE launching the app and you wont have this issue.

查看更多
来,给爷笑一个
6楼-- · 2019-01-10 12:48

I had the same stuck at 27% problem. Unplugging the device and plugging it back in fixed it.

查看更多
神经病院院长
7楼-- · 2019-01-10 12:49

For me it was the ADB which had hung. No amount of quitting either eclipse or the emulator had any effect.

  1. Terminate the emulator
  2. Terminate the ADB, (I simply killed its process using task manager.
  3. Start the emulator again, (also causes the ADB to restart)
  4. Run your program

It should no longer get stuck.

查看更多
登录 后发表回答