使用Eclipse for androidSDK,当我去运行时,我得到警告:数据分区已经在使用中。更改不会持续存在!

2022-09-02 09:13:14

我对Java,Android和eclipse完全陌生。在做最初的Hello,Android教程时,我去运行并得到以下内容:

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

答案 1

转到DDMS透视图,单击屏幕捕获相机图标旁边的向下箭头,然后从下拉菜单中选择重置adb。

我的apk文件也没有部署,重置adb解决了它。:)


答案 2

更简单的修复:在Windows中打开命令提示符(cmd.exe)。在 Linux 中打开终端。在 SDK 文件夹中找到 。.adb.exe\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)

然后重新测试,问题解决了!


推荐