When i am running my application as shown below error shows can you tell me what is the problem.
[2012-03-28 23:32:53 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2012-03-28 23:32:53 - Emulator] WARNING: SD Card image already in use: C:\Documents and Settings\atar singh\.android\avd\Android_4.0.3.avd/sdcard.img
[2012-03-28 23:32:53 - Emulator] ko:Snapshot storage already in use: C:\Documents and Settings\atar singh\.android\avd\Android_4.0.3.avd/snapshots.img
To fix your problem the GUI way:
Go to DDMS perspective, click on the down arrow next to the screen capture camera icon and select reset adb from the dropdown menu.
From the command line:
Open the cmd.exe command prompt. Locate ABD.exe in SDK folder "..\android-sdk\platform-tools\abd.exe"
cd <sdk directory>
(move to the folder listed above)
dir
(to make sure abd.exe is in that directory)
adb kill-server
(stop the abd service, won't return anything)
adb start-server
(start the abd service back up)
Looks like you have running a process from avd (could be previous one which was not closed properly). Try looking for avd process and kill it.
I tried the above solutions without success. They may help in some cases, but not all.
To clear the "already in use" problem without losing the state of your AVD, the specific files you need to delete are the "pid" files in the .lock directories under YourAVDName.avd. I did this while the AVD was not running, but I didn't test it without closing the AVD, so I don't know for certain if that is necessary (though it seems logical.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With