When I start my android emulator it takes some times then it will show the emulator-5554 disconnected message. Can anyone tell me what the problem is?
问题:
回答1:
Open the Device view of Android in Eclipse IDE. Then click the Reset Adb menu item on the device menu. Then run your application again.
回答2:
I resolved it by following these steps,
- Run Emulator
- Keep the Emulator, (no matter same error occurs)
- Make Sure the Home Screen of Emulator is appeared
- go to Window -> Show Perspective -> DDMS --> In Devices Panel -> on Corner Drop Down Menu
- Reset adb
I Hope it will helps you.
回答3:
Restart the emulator
Select & Right Click on Android Project
Run Configurations
Go to tab Target
Enable option Wipe User Data on Emulator launch parameters
Run Application
If you are using other IDE, you can restart your emulator using -wipe-data flag to delete all the temporary files that the emulator created in previous runs.
回答4:
Note that to find the "reset adb" option you have to click the downward pointing arrow next to the camera on the right of the devices view. The arrow may appear greyed out like everything else on the devices toolbar. It used to take hours sometimes for a successful emulator launch because of the constant disconnects until i discovered this option and where it was buried.
回答5:
I've faced the same situation today: started emulator from AVD manager, and after start it appeared offline in DDMS, resetting ADB didn't help - it attempted to start several times and resulted the same way, with offline status. Another symptom was that emulator didn't react on clicking on it. After all I realized that the reason was that emulator has saved the last execution state, which possibly crashed. To fix it I unchecked the 'Launch from snapshot' option on start of emulator. And this worked for me.
回答6:
See Related post
Another related post
And another
This worked on Linux for me:
- Run Emulator (Wait for the home screen of the Emulator to load)
- Click Window > Open Perspective > DDMS
- In Devices Panel, click on drop down menu > Reset adb
- Run project
回答7:
That seems to be a problem of 1.6
Upgrade to 2.1 and it shall disappear.
回答8:
Goto-->Prefrencess-->Android-->DDMS--> 1.visible the checkbox Use ADBHost, 2.ADB Connection timeout to 1000000, 3.Method Profile Buffer size change from 8MB into 20MB.
This is Solution the Developer whom have the lower end machine will face this Problem. Kindly check it.
回答9:
Try running the emulator from the AVD Manager. Wait till you get the home screen and then run your project.
回答10:
The problem as I discovered lays in the fact the the project has no appropriate Virtual Device defined for it in the AVD manager.
So the recommended steps in eclipse are:
- Go to "Project"-> Properties-> Android.
- On the right pane see what line is checked in the Project build target.
Remember the target platform number that appears in the selected line. - Go to "Windows"-> AVD Manager.
- Check the list of existing Android Virtual Devices for a device that matches the Platform and API level that you have set for your project (see step #2 above).
- If there is no line that includes an AVD for your platform (as I suspect), add it using the "New" button.
- A "Create New Android Virtual Device" window will be opened. set a new device name. in the "Target" selection box choose the right platform for your project.
Enjoy your emulator once again!