• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Eclipse Hangs

paulb5352

Lurker
Hi, Sorry if this has been asked many times. I'm a 53 year old developer who has years of Java experience and turning my hand to Android for fun.

I've book the Hello Android book and set up my PC for development. All works but after I've launched the Emulator it works for the first time, try it again and it stops at 27% and hangs.

If I close Eclipse and open again it works but follows the same pattern.

Any help greatly appreciated.
 
Welcome to AF paul!

Which Eclipse version are you using? And what OS?


Also, once you launch an emulator it's best to leave it running (rather than close/relaunch)

The best I have found too is to test on an actual phone when possible :)

hope that helps :)


Edit: also what SDK version are you on, did you update it from an old one or is it a fresh install?
 
I too am new to eclipse/ android dev and having this issue. Brand new install as of a day ago. Latest everything as well as installed all packages within the SDK Manager.

Open Eclipse create a new app or open a existing and press run. Opens the virtual phone perfectly and installs/ runs the app. Minimize the virtual phone and edit the source in eclipse. Press run again, asks to save okay, then tries to run but stays at "Launching Hello World (27%)" and never finishes. I close down eclipse and the virtual phone. Restart eclipse and open the project click run and works perfectly. Again minimize the virtual phone edit source and run, nothing stops at 27% and will not finish.
 
hmm.... one thing maybe to try is updating ADT.... the installers are sometimes messed up a bit.

Try going to [Help] > [Check for updates...] in Eclipse and see if any Android related stuff comes up.
 
Tried and No Updates found.

From reading a few other posts have now connected my phone and am using that until I get the ADV working. The usb connected phone works perfectly.
 
Yes, indeed phones tend to work much better and are faster than the emulator.

The emulator leaves a lot to be desired. Glad at least one of ya got things working :)
 
I started having the same problem a few days ago, even though I have been using eclipse and android for a year and a half now.

There are several symptoms which all started at once.

When I get that 27% hang, I also notice in the task manager that there are
two instances of javaw.exe running. If I close Eclipse, then the task mgr
still shows Javaw and eclipse.exe running, regardless of any prior error.

DDMS is now not working properly. If I get an error and try to open DDMS,
then eclipse just hangs. IF I don't have an error, but still open the DDMS
perspective, there is no output, and clicking on the Emulator doesn't
show any output either.

Also, Eclipse isnot saving the state of the Workspace/project
java perspective anymore. Whenever I open eclipse, it shows the same tabs in the java
perspective which I closed a few days ago. It is not even showing the
tabs for newly created classes or xml files even though they are being
saved to the workspace. And still another new weird occurrence is that
now every time I run the emulator, I get a prompt to select a video device.


I found a "fix" to my problem. I just used a different target AVD, and now everything seems to
work fine.
 
Did you install eclipse/java into the Program Files or Program Files (x86) folder?

might be something there. Windows tends to "protect" files in there. I often install programs that change often just to my C:\ drive.

I also had problems with AVDs recently too but fixed it the same way unemployable did -- just deleted and re-created the ones I needed -- I think olde AVDs are somewhat incompatible with the new DDMS/ADB
 
Back
Top Bottom