Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emulator problem in Android

When I launch the emulator I face many problems (Errors):-

HttpConnectionApp]emulator-5554 disconnected! Cancelling 'net.paxcel.http.HttpConnectionApp activity launch'!  Emulator]emulator: ERROR: the user data image is used by another emulator. aborting             

Each time I have to re-run it but all in vain.

How can I improve this so that I can re-run the application on same AVD?

like image 739
AMANDEEP SINGH Avatar asked Nov 16 '09 08:11

AMANDEEP SINGH


People also ask

How do I turn off Android Emulator?

Run and stop an emulator, and clear data To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data.

Why is my emulator stuck?

Fix 4 – Uninstall and Reinstall AVD From Android Studio, select “Tools” > “SDK Manager” > “SDK Tools“. Uncheck “Android Emulator“. Select “Apply” to have the emulator uninstalled. Once the emulator has been removed, check the “Android Emulator” box again, then select “Apply” to reinstall it.


1 Answers

I had the same issue after my computer locked up and I had to power cycle it.

Wiping the user data didn't fix my problem, I had to delete the following folders manually

C:\Users\%UserName%\.android\avd\AVD2.1.avd\cache.img.lock C:\Users\%UserName%\.android\avd\AVD2.1.avd\userdata-qemu.img.lock 
like image 187
Travis Avatar answered Sep 22 '22 13:09

Travis