Friday, May 20, 2011

Android Emulator ERROR: the user data image is used by another emulator. aborting

i have been working on android for month and  half now. i have been experiencing little problem (why little? you will understand from solution!) with my AVD(Emulator).
sometimes, when i run the application this error keeps coming and it does not load the application.

Eclipse Error console says "emulator error the user data image is used by another emulator. aborting"

well i used to restart the AVD(Emulator) in earlier month. but today i finally got fustrated by this "little" problem and decided to sort it out. ;) i googled the problem and come up with many solutions. i would like to share them with you. :D

try one of them!

1. Restart your AVD(Emulator). huh!

2. Run configurations > Target > Wipe user data > Run

3.
Remove these files:
C:/Users/%user_name%/.android/avd/%name_of_avd%/cache.img.lock
C:/Users/%user_name%/.android/avd/%name_of_avd%/userdata-qemu.img.lock

You won't need to restart the emulator.

you may wanted to know,why delete these files and why this error pop up anyways?

well, Whenever you launch the emulator it creates a lock, you cannot launch it twice. In my case the computer crashed and was giving me the same message "ERROR: the user data image is used by another emulator

4. one console command can also fix this problem for yaa!

adb kill-server && adb start-server
Then, you simply run the application again (without restarting AVD) and that's it.

i hope you fix this problem and make some awesome android app.

No comments:

Post a Comment