Using Eclipse for androidSDK, when I go to run, I

2020-02-26 04:34发布

I am completely new to Java, and Android, and eclipse. When doing the initial Hello, Android tutorial, I go to run and get the following:

WARNING: Data partition already in use. Changes will not persist!
WARNING: Cache partition already in use. Changes will not persist!

11条回答
仙女界的扛把子
2楼-- · 2020-02-26 04:37

For me it worked to simply create a new virtual Android device in the Eclipse -> Window -> AVD Manager.

查看更多
淡お忘
3楼-- · 2020-02-26 04:38

If you consider this tutorial about "Read/Write Android Emulator sdcard.img in Windows", check that this virtual disk isn't somehow already mounted:

mounting image disk

If ImDisk complains of the file being in use, close the emulator.
They won’t run together.
Unmounting the image in Android does not allow the image to be mounted in Windows, the emulator must be shut down in order to free the image from its locked state

The OP JiminyCricket confirms it was some kind of "resource lock":

Simple restart of my OS fixed it. Thanks!

查看更多
ら.Afraid
4楼-- · 2020-02-26 04:40

Go the AVD Manager then select the device and go to edit button and make sure RAM is not go beyond 768M in the memory options. Sometimes windows may fail to emulate, try progressively smaller value first if the emulator fails to launch.

查看更多
老娘就宠你
5楼-- · 2020-02-26 04:46

Even easier fix: In Windows open command prompt (cmd.exe). In Linux open Terminal. Locate adb.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, should give a couple of readings)

Then retest, problem solved!

查看更多
beautiful°
6楼-- · 2020-02-26 04:46

One solution for this is to simply clean your projects. From the menu PROJECT>CLEAN...Clean All projects.

This worked for me when rebooting eclipse did not.

I take it back... this was temporary and incomplete. Even rebooting my eclipse and my system did not help until I killed the adb service, restarted it per the suggestions here. Now everything seems clean (knock on wood)

查看更多
够拽才男人
7楼-- · 2020-02-26 04:47

Just Restart Your Android SDK and Eclipse If it not works even restarting PC just delete that Android virtual device and create new one using AVD.

Hope It Helps !!

查看更多
登录 后发表回答