eclipse 安卓 Java 模拟器。. 警告:数据分区已在使用中。变化不会持久
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12240436/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android Java Emulator . . WARNING: Data partition already in use. Changes will not persist
提问by Kobojunkie
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
我试图在 Eclipse 中运行一个 Android 项目(Android 2.3.3,在 Windows 7 64 位机器上),但我遇到了以下错误(在控制台窗口中)。这在几个小时前有效,但现在没有,我认为我没有改变任何重大的事情。非常感谢我能帮我解决这个问题
[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!
回答by Pushkar Raj
Same problem also i have faced.
我也遇到过同样的问题。
I deleted My emulator and create a new emulator.
我删除了我的模拟器并创建了一个新的模拟器。
It's working fine for me.
它对我来说很好用。
回答by Koosemose
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.
如果之前的答案都不起作用,请尝试导航到错误消息中提到的文件夹(在您的情况下为 C:\Users\MACHINEOVA.android\avd\MAPAPP1.avd/)并且(在 Windows 上)将有几个文件夹的名称以 .lock 结尾,删除它们并重新启动模拟器。
回答by Marcin S.
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.
请尝试检查 AVD 中的“擦除用户数据”并运行它。如果这无助于结束 adb 进程( alt-ctrl-del --> 启动任务管理器并在进程选项卡中找到 adb.exe 以关闭它)。重新启动 eclipse,然后它应该可以工作了。
回答by pragmatic
I fixed the same problem by first making sure that no adb.exe process is running in the process tab on task manager.
我首先确保没有 adb.exe 进程在任务管理器的进程选项卡中运行,从而解决了同样的问题。
Then make sure that AVD(avd.exe on windows) is not being invoked either as a GUI or from any teminal.(avd.exe -avd ).
然后确保 AVD(Windows 上的 avd.exe)没有被作为 GUI 或从任何终端调用。(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.
注意 - 检查“擦除用户数据”将无助于解决此问题。此外,删除您的 avd 也不是解决此问题的明智解决方案。
回答by Artaxias
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.
只需删除您现在拥有的所有配置的模拟器。使用 Eclipse 工具栏中的 AVD(android 垂直设备)管理器创建一个新的,尝试使用正常程序,这对我来说可以正常工作。
回答by u2318410
Kill the adb process,and restart your eclipse
杀死 adb 进程,然后重新启动 eclipse
回答by Serge
Delete *.lock directories at .android\avd\your.avd\ , restart emulator
删除 .android\avd\your.avd\ 的 *.lock 目录,重启模拟器
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.
这发生在我错误关闭模拟器后。我没有关闭它,而是关闭了运行模拟器的计算机。直接退出模拟器会有所帮助。