Android Virtual Device

When I run my application, as shown below, it shows errors, can you tell me what the problem is.

[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 
+6
source share
3 answers

To fix your problem GUI method :

Go into DDMS mode, click the down arrow next to the screen capture camera icon and select reset adb from the drop-down menu.

At the command line :

Open the cmd.exe command prompt. Locate abd.exe in the sdk folder ".. \ android-sdk \ platform-tools \ abd.exe"

cd <sdk directory> (navigate to the folder above)

dir (to make sure the abd.exe file is in this directory)

adb kill-server (stop abd service, won't return anything)

adb start-server (run backup abd)

+2
source

It looks like you are starting a process from avd (maybe the previous one, which was not closed properly). Try searching for avd process and kill it.

+2
source

I tried these solutions without success. In some cases, they may help, but not all.

To clear the “already in use” problem without losing the state of your AVD, the specific files to be deleted are the “pid files” in the .lock directories in the “YourAVDName.avd” section. I did this while the AVD was not working, but I did not test it without closing the AVD, so I don’t know for sure if this is necessary (although this seems logical.)

+2
source

Source: https://habr.com/ru/post/911878/


All Articles