Android Java Emulator . . WARNING: Data partition

2020-07-17 15:01发布

问题:

I am trying to run an Android project in Eclipse(Android 2.3.3, on a Windows 7 64-bit machine), but I run in to the following error (on console window). This worked a couple of hours ago but now does not and I don't think I changed anything major. Would appreciate any help I can to fix this issue please

[2012-09-02 17:38:33 - mapviewballoons.Main] Starting incremental Pre Compiler: Checking resource changes.
[2012-09-02 17:38:33 - mapviewballoons.Main] Nothing to pre compile!
[2012-09-02 17:38:33 - samplemap] Refreshing resource folders.
[2012-09-02 17:38:35 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2012-09-02 17:38:35 - Emulator] WARNING: SD Card image already in use: C:\Users\MACHINEOVA\.android\avd\MAPAPP1.avd/sdcard.img
[2012-09-02 17:38:35 - Emulator] WARNING: Cache partition already in use. Changes will not persist!

回答1:

Same problem also i have faced.

I deleted My emulator and create a new emulator.

It's working fine for me.



回答2:

If none of the previous answers have worked try navigating to the folder mentioned in the error message (in your case C:\Users\MACHINEOVA.android\avd\MAPAPP1.avd/) and (on Windows) there will be several folders whose names end in .lock, delete those and restart your emulator.



回答3:

Please try to check the "Wipe user data" in the AVD and run it. If that won't help end adb process ( alt-ctrl-del --> start task manager and in the process tab find adb.exe to close it). Restart eclipse and it should work then.



回答4:

I fixed the same problem by first making sure that no adb.exe process is running in the process tab on task manager.

Then make sure that AVD(avd.exe on windows) is not being invoked either as a GUI or from any teminal.(avd.exe -avd ).

NOTE- Checking on "Wipeout user data" will not help in any way fixing this problem. Also deleting your avd is also not a wise solution to fix this problem.



回答5:

just delete all the configured emulaters u have now. create a new one using AVD(android vertual device) manager in Eclipse toolbar try with normal procedure that will work fine form me.



回答6:

Kill the adb process,and restart your eclipse



回答7:

Delete *.lock directories at .android\avd\your.avd\ , restart emulator

This happened to me after incorrect closing of emulator. I didnt closed it but shut down the computer with emulator running. Direct emulator exiting will help.