Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old December 30th, 2009, 04:03 PM   #1 (permalink)
New Member
 
Join Date: Dec 2009
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting an error when running the android "Hello World" tutorial

I have followed the instructions for the "Hello World" tutorial at
Hello, World | Android Developers
It all builds as expected, but when I run the application I get ...

[2009-12-30 14:26:09 - Android Hello World]Waiting for HOME
('android.process.acore') to be launched...
[2009-12-30 14:26:11 - Emulator]
[2009-12-30 14:26:11 - Emulator]This application has requested the
Runtime to terminate it in an unusual way.
[2009-12-30 14:26:11 - Emulator]Please contact the application's
support team for more information.
[2009-12-30 14:26:11 - Android Hello World]emulator-5554 disconnected!
Cancelling 'rnt.android.learning.hello activity launch'!

I am using the Eclipse IDE with the ADT plugin, etc.
I am doing this on a laptop running MS Windows XP Professional OS

I have done some google searches on this problem and haven't found a
solution for my particular circumstances.
Can anyone suggest what might be going on?

Thanks

pransome is offline  
Reply With Quote
Sponsors
Old December 30th, 2009, 04:40 PM   #2 (permalink)
New Member
 
Join Date: Dec 2009
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fixed it, don't know how

I went back and went through the "Hello World" tutorial again, this time selecting the most recent target and a corresponding AVD and everything worked as expected. I have no idea why.
pransome is offline  
Reply With Quote
Old January 2nd, 2010, 08:33 AM   #3 (permalink)
New Member
 
Join Date: Jan 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK - I also had the dreaded "emulator-5554 disconnected" issue and have confirmed, at least on my set up (XP Pro etc) that the Android 1.5 emulator with Eclipse simply does not work.

I can successfully target any Android platform as long as my emulator is V2.0 or greater.
drollins is offline  
Reply With Quote
Old January 2nd, 2010, 02:58 PM   #4 (permalink)
Senior Member
 
ttaylor0024's Avatar
 
Join Date: Jan 2010
Location: Kansas, United States
Posts: 659
 
Device(s): Verizon Samsung Galaxy Nexus
Thanks: 6
Thanked 147 Times in 60 Posts
Default

I have a problem when running the "Hello, World" tutorial as well...

I get this

or this

When I should get this


I am getting really frustrated... Help?
ttaylor0024 is offline  
Reply With Quote
Old January 2nd, 2010, 03:52 PM   #5 (permalink)
Member
 
Join Date: Nov 2009
Posts: 103
 
Device(s): Droid
Thanks: 0
Thanked 4 Times in 4 Posts
Default

start the AVD and wait for it to finish booting before doing anything.

Once you get to the android desktop on the virtual device. Switch back to eclipse and "run"
KeithG is offline  
Reply With Quote
Old January 2nd, 2010, 04:11 PM   #6 (permalink)
Senior Member
 
ttaylor0024's Avatar
 
Join Date: Jan 2010
Location: Kansas, United States
Posts: 659
 
Device(s): Verizon Samsung Galaxy Nexus
Thanks: 6
Thanked 147 Times in 60 Posts
Default

Ok. I just created a new AVD, now how do i open it? I just downloaded this stuff the other day, got frustrated and quit. Now I would like to start again...

Thanks for the help!
ttaylor0024 is offline  
Reply With Quote
Old January 3rd, 2010, 12:43 AM   #7 (permalink)
Member
 
Join Date: Nov 2009
Posts: 103
 
Device(s): Droid
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Run the Avd manager from eclipse. Its an icon on the tool bar, or you can get at it from a drop down menu (window maybe? I'm on my phone so I can't check).

After the avd manager is running create a virtual machine that matches the sdk level of your application.

Select the vm and then hit the start button. Wait for the vm to fully load before continuing. Once its loaded switch back to eclipse and run your app.
KeithG is offline  
Last edited by KeithG; January 3rd, 2010 at 12:46 AM.
Reply With Quote
The Following User Says Thank You to KeithG For This Useful Post:
Oaff (November 19th, 2010)
Old January 3rd, 2010, 04:07 PM   #8 (permalink)
Senior Member
 
ttaylor0024's Avatar
 
Join Date: Jan 2010
Location: Kansas, United States
Posts: 659
 
Device(s): Verizon Samsung Galaxy Nexus
Thanks: 6
Thanked 147 Times in 60 Posts
Default

Ok. I open the AVD manager, click on my AVD and press start and still the same screen with "Android" written on it...
ttaylor0024 is offline  
Reply With Quote
Old January 3rd, 2010, 04:39 PM   #9 (permalink)
Member
 
Join Date: Nov 2009
Posts: 103
 
Device(s): Droid
Thanks: 0
Thanked 4 Times in 4 Posts
Default

how long are you waiting?

The emulator can take quite a long time to boot up. Especially on older hardware.

The other solution is to run adb logcat during the emulator boot process to see how its progressing and if its had a fatal error.

You may want to delete that AVD and recreate a new one.
KeithG is offline  
Reply With Quote
Old March 9th, 2010, 09:45 PM   #10 (permalink)
New Member
 
Join Date: Mar 2010
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

>>The other solution is to run adb logcat during the emulator boot process to see how its progressing and if its had a fatal error.

My problem was not waiting long enough for the emulator to start up. Watching the adb logcat showed that stuff was happening in there, I just needed to be a little more patient.

In my case I started the emulator from the Eclise Android SDK and AVD manager, then when it was loaded I ran the hello world app.
imrdy is offline  
Reply With Quote
Sponsors
Old March 10th, 2010, 02:49 AM   #11 (permalink)
Junior Member
 
Join Date: Mar 2010
Posts: 44
 
Device(s): Samsung Galaxy IK5
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Yea its pretty annoying having to wait so long for it to load up but... Try starting up your android phone... It probably takes a long time too =D Anyways if you have your own phone then just debug on it I find that easier.
Alonski is offline  
Reply With Quote
Old March 28th, 2010, 10:53 PM   #12 (permalink)
New Member
 
swiftwood's Avatar
 
Join Date: Mar 2010
Posts: 8
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Been getting my Droid to work with Eclipse on Ubuntu this weekend

I've tried using the emulator, but unfortunately it takes FOREVER to come up, like 6 hours

fortunately I can get it to upload and run directly onto my phone, so it's not really a problem.

The funny part is that the phone doesn't show up under file manager like a regular USB device
Quote:
$ ./adb devices
List of devices attached
040372410100F011 device
Quote:
$ lsusb
Bus 004 Device 003: ID 22b8:41db Motorola PCS
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
swiftwood is offline  
Last edited by swiftwood; March 28th, 2010 at 10:59 PM. Reason: formatting
Reply With Quote
Old May 23rd, 2010, 12:17 PM   #13 (permalink)
New Member
 
Join Date: May 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello everyone,

My first post on behalf of my 10 year old son: He too is getting the 'emulator-5554 disconnected! Cancelling' error after following the Eclipse/SDK/Android installation on XP to the letter.

What is appararent to me is that the Eclipse/SDK/Android installation has not been fully tested before release to the public: this is unacceptable in my view. Its like running buggy Slackware Linux from the 1990s! Has Google really invested so much in something that cannot even run 'Hello World!' in Eclipse!??

Can someone please advise how to fix this error permanantly before my son gives up on Android before he has even started? Sorry to sound so frustrated but you should see how disappointed he is after spending 5 hours trying to get it to work!!
ddentrec is offline  
Reply With Quote
Old September 14th, 2010, 11:36 PM   #14 (permalink)
New Member
 
Join Date: Sep 2010
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default finally working

okay I am new to this.. but it did take me a while to figure.
first, the AVD (Virtual device) does takes quite a while to boot up.
during bootup, all you see is an android logo/world (Depending on the API you are using).

But with API 8, following the hello world guide.
It took the AVD about 5min on my machine to bootup.
then you can see the hello world demo working.

Good luck
psalm1975 is offline  
Reply With Quote
Old November 19th, 2010, 06:56 PM   #15 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 1
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

It took about 10 min to load up the hello android program on my laptop. Thanks for the help. I was getting a little frustrated with it.
Oaff is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Your project contains error(s)" running hello world demo agim5 Application Development 10 March 8th, 2012 04:18 PM
Can't Flash - "assert failed: write_raw_image("/tmp/boot.img","boot")" error Brian Rubin EVO 4G - All Things Root 62 December 6th, 2011 11:19 AM
Eclipse Android Error "Error generating final archive:Unable to get debug signature key"????? hitendrasinh Developer 101 2 December 27th, 2010 10:50 PM
"Force close" error when running app amir1 Android Applications 1 November 19th, 2010 07:39 AM
Possible to add "Trusted Site" to Epic to avoid "Secure Data Connection" error? Johnny Cakes Samsung Epic 4G 0 September 28th, 2010 10:39 AM



All times are GMT -5. The time now is 02:15 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo