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


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old December 7th, 2011, 10:08 AM   #1 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 6
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default emulator-5554 disconnected

I'm new in android .
i create a project but when i run it ,follow message was shown.
emulator-5554 disconnected
for solving this issue i did
1-reset adb in running time
2-enable wipe user data
3-set Device Ram Size to 512
but it doesn't work
i don't know what i do!!
(also i use ubuntu11.10)

androidnode is offline  
Reply With Quote
Sponsors
Old December 8th, 2011, 02:26 AM   #2 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

Are you seeing any relevant errors in the LogCat view?

Do you see the AVD start at all?

If not, can you manually start an AVD?

If you can, can you see the manually started AVD in the Devices view of the DDMS perspective?
jiminaus is offline  
Last edited by jiminaus; December 8th, 2011 at 02:28 AM.
Reply With Quote
Old December 8th, 2011, 04:28 AM   #3 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 6
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

thanks, jiminaus
I can see LogCat view,It's empty.
I think ,the AVD start,
I attached picture of the Console Window.it shows events next Run
Project Name: Pn
Activity Name: Pnk.android.pn.PnActivity
AVD name:avd1

Attached Images
File Type: png Console.png (46.8 KB, 2 views)
androidnode is offline  
Reply With Quote
Old December 8th, 2011, 05:42 AM   #4 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

Quote:
Originally Posted by androidnode View Post
thanks, jiminaus
I can see LogCat view,It's empty.
I think ,the AVD start,
I attached picture of the Console Window.it shows events next Run
Project Name: Pn
Activity Name: Pnk.android.pn.PnActivity
AVD name:avd1

It looks like avd1 is starting, but then dying or is being closed before android fully boots.

Try going into the AVD Manager. Delete avd1. Create a new avd. Choose a target and small SD Card size, but don't change anything else. Then start the new AVD from within AVD Manager. Does Android boot?
jiminaus is offline  
Reply With Quote
The Following User Says Thank You to jiminaus For This Useful Post:
androidnode (December 8th, 2011)
Old December 8th, 2011, 12:05 PM   #5 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 6
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I created avd2 and started it ...
I attached their pictures,may be useful
Attached Files
File Type: zip Picures_SDK_AVD.zip (1.04 MB, 11 views)
androidnode is offline  
Reply With Quote
Old December 8th, 2011, 02:37 PM   #6 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

For starters you have an old version of the ADT plugin, and possibly the SDK tools as well.

Uninstall the ADT plugin and the your current SDK tools and components.

Download the latest Eclipse IDE for Java Developers from here: Eclipse Downloads

Download SDK Tools revision 15 from here: SDK Tools | Android Developers

Download ADT 15.0.1 from here: ADT Plugin for Eclipse | Android Developers
jiminaus is offline  
Reply With Quote
Old December 11th, 2011, 10:31 AM   #7 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 6
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I installed following items
1.eclipse 3.7.0
2.ADT-15.0.1
3.SDK tools 15
also I created avd3 with 50M SD card size
but the Console shows emulator-5554 disconnected! ...
i don't know where is mistake!!
I attached picture of Android SDK manager
Attached Files
File Type: zip updating.png.zip (236.3 KB, 2 views)
androidnode is offline  
Reply With Quote
Old December 11th, 2011, 03:16 PM   #8 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

Let's see if you can do a series of test to try to isolate the issue.

I took a screenshot of my avd3 setup. Try and create this same setup.

Then start avd3 via the AVD manager. Don't run your program. Wait for avd3 to boot fully. If avd3 doesn't boot, then there's something wrong with your setup at any of the levels of Linux, SDK or AVD.

If avd3 boots, open a terminal (aka shell, console or command prompt) and try this command.
Code:
telnet 127.0.0.1 5554
This should connect you to avd3. You should get output like this.
Quote:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Android Console: type 'help' for a list of commands
OK
If you cannot connect to avd3, then I would think you have a firewall blocking access.

If you can connect, just issue the quit command to disconnect.

Go into Eclipse, go into the DDMS perspective. In the Devices view, go into the view menu and choose Reset ADB. You should then see avd3 (as emulator-5554) in the devices tree. If you don't, there's something wrong with your ADB.

In the Emulator Control view, enter a phone number and click call. This is will simulate an incoming call from that number on avd3. You should see the incoming call on the avd3. If you don't there's something wrong with your ADT plugin.
Attached Files
File Type: zip screenshots.zip (675.9 KB, 4 views)
jiminaus is offline  
Reply With Quote
Old December 12th, 2011, 11:10 AM   #9 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 6
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

thanks for your reply jiminaus
I did
series of test that you told me and It seems there is something wrong in my ADB. (or ADT)
Result of tests are: (I enclosed their pictures)
1.avd3 booted
2.telnet connected to the emulator
3.I didn't see avd3 in the Device tree next resting adb
4.the Emulator Control couldn't connect to emulator
now,what is wrong in my Adb
(or ADT)?!




Attached Files
File Type: zip tests.zip (504.7 KB, 1 views)
androidnode is offline  
Reply With Quote
Old December 13th, 2011, 02:10 AM   #10 (permalink)
Premium Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
 
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
Default

Sorry, I don't know what further to advise.
jiminaus is offline  
Reply With Quote
Sponsors
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 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




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