新 ADT 更新后模拟器出现问题
更新到 ADT 12 后,起初看起来没问题,然后我遇到了一些问题,例如:
模拟器运行不正确并给出我在下面报告的问题。
我尝试使用 XML 窗口中的快速代码,它混合了代码线。有人遇到过同样的问题吗?
这是我尝试运行项目后在控制台中收到的错误:
[2011-07-14 20:28:36 - cursoMC5leccion6] ------------------------------
[2011-07-14 20:28:36 - cursoMC5leccion6] Android Launch!
[2011-07-14 20:28:36 - cursoMC5leccion6] adb is running normally.
[2011-07-14 20:28:36 - cursoMC5leccion6] Performing com.wocmultimedia.cursoMC5leccion6.Main activity launch
[2011-07-14 20:28:36 - cursoMC5leccion6] Automatic Target Mode: launching new emulator with compatible AVD 'avdGooglemarket'
[2011-07-14 20:28:36 - cursoMC5leccion6] Launching a new emulator with Virtual Device 'avdGooglemarket'
[2011-07-14 20:28:42 - cursoMC5leccion6] New emulator found: emulator-5554
[2011-07-14 20:28:42 - cursoMC5leccion6] Waiting for HOME ('android.process.acore') to be launched...
[2011-07-14 20:29:57 - cursoMC5leccion6] emulator-5554 disconnected! Cancelling 'com.wocmultimedia.cursoMC5leccion6.Main activity launch'!
[2011-07-14 20:33:22 - cursoMC5leccion6] ------------------------------
[2011-07-14 20:33:22 - cursoMC5leccion6] Android Launch!
[2011-07-14 20:33:22 - cursoMC5leccion6] adb is running normally.
[2011-07-14 20:33:22 - cursoMC5leccion6] Performing com.wocmultimedia.cursoMC5leccion6.Main activity launch
[2011-07-14 20:33:22 - cursoMC5leccion6] Automatic Target Mode: launching new emulator with compatible AVD 'avdGooglemarket'
[2011-07-14 20:33:22 - cursoMC5leccion6] Launching a new emulator with Virtual Device 'avdGooglemarket'
[2011-07-14 20:33:24 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2011-07-14 20:33:24 - Emulator] WARNING: SD Card image already in use: C:\Documents and Settings\Angelo Giammarresi\.android\avd\avdGooglemarket.avd/sdcard.img
[2011-07-14 20:33:24 - Emulator] WARNING: Cache partition already in use. Changes will not persist!
[2011-07-14 20:33:24 - cursoMC5leccion6] New emulator found: emulator-5556
[2011-07-14 20:33:24 - cursoMC5leccion6] Waiting for HOME ('android.process.acore') to be launched...
After updating to ADT 12, at first it seemed ok, then I got some problems like these:
Emulator runs improperly and gives the problem I report below.
I tried to use the quick code from XML windows and it mingles the codeline. Has anyone encountered the same problems?
This is the error I got in the console after trying to run a project:
[2011-07-14 20:28:36 - cursoMC5leccion6] ------------------------------
[2011-07-14 20:28:36 - cursoMC5leccion6] Android Launch!
[2011-07-14 20:28:36 - cursoMC5leccion6] adb is running normally.
[2011-07-14 20:28:36 - cursoMC5leccion6] Performing com.wocmultimedia.cursoMC5leccion6.Main activity launch
[2011-07-14 20:28:36 - cursoMC5leccion6] Automatic Target Mode: launching new emulator with compatible AVD 'avdGooglemarket'
[2011-07-14 20:28:36 - cursoMC5leccion6] Launching a new emulator with Virtual Device 'avdGooglemarket'
[2011-07-14 20:28:42 - cursoMC5leccion6] New emulator found: emulator-5554
[2011-07-14 20:28:42 - cursoMC5leccion6] Waiting for HOME ('android.process.acore') to be launched...
[2011-07-14 20:29:57 - cursoMC5leccion6] emulator-5554 disconnected! Cancelling 'com.wocmultimedia.cursoMC5leccion6.Main activity launch'!
[2011-07-14 20:33:22 - cursoMC5leccion6] ------------------------------
[2011-07-14 20:33:22 - cursoMC5leccion6] Android Launch!
[2011-07-14 20:33:22 - cursoMC5leccion6] adb is running normally.
[2011-07-14 20:33:22 - cursoMC5leccion6] Performing com.wocmultimedia.cursoMC5leccion6.Main activity launch
[2011-07-14 20:33:22 - cursoMC5leccion6] Automatic Target Mode: launching new emulator with compatible AVD 'avdGooglemarket'
[2011-07-14 20:33:22 - cursoMC5leccion6] Launching a new emulator with Virtual Device 'avdGooglemarket'
[2011-07-14 20:33:24 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2011-07-14 20:33:24 - Emulator] WARNING: SD Card image already in use: C:\Documents and Settings\Angelo Giammarresi\.android\avd\avdGooglemarket.avd/sdcard.img
[2011-07-14 20:33:24 - Emulator] WARNING: Cache partition already in use. Changes will not persist!
[2011-07-14 20:33:24 - cursoMC5leccion6] New emulator found: emulator-5556
[2011-07-14 20:33:24 - cursoMC5leccion6] Waiting for HOME ('android.process.acore') to be launched...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
删除 AVD 目录中的所有“*.lock”目录,即 [...]/.android/avd/[youravd].avd
Delete all the "*.lock" dirs in your AVD directory, i.e. [...]/.android/avd/[youravd].avd
有时您还需要删除 snapshots.img
Windows 7 上 AVD 文件夹的路径为:
C:\ Users \ (YourUsername) \ .android \ avd \ (YourAVDsName.avd) \
You will sometimes also need to delete snapshots.img
Path to AVD folders on Windows 7 is:
C:\ Users \ (YourUsername) \ .android \ avd \ (YourAVDsName.avd) \
从 avd 文件夹中删除 userdata 和 sdcard 图像文件。这将为我解决此错误
Delete userdata and sdcard image files from avd folder.That will fix this error for me
要清除“已在使用”问题而不丢失 AVD 的状态,您需要删除的具体文件是 YourAVDName.avd 下 .lock 目录中的“pid”文件。我在 AVD 未运行时执行了此操作,但我没有在未关闭 AVD 的情况下对其进行测试,因此我不确定这是否有必要(尽管这似乎合乎逻辑)。
To clear the "already in use" problem without losing the state of your AVD, the specific files you need to delete are the "pid" files in the .lock directories under YourAVDName.avd. I did this while the AVD was not running, but I didn't test it without closing the AVD, so I don't know for certain if that is necessary (though it seems logical.)
清除 Eclipse AVD(删除带有 *.lock 文件的数据)
clear your eclipse AVD (delete data with *.lock files)
AVD 锁定一些资源才能运行。清除 .lock 目录,AVD 可能未正确关闭,导致资源仍处于锁定状态,AVD 通过简单删除 .lock 目录来解锁资源,您可以通过删除 .lock 目录手动执行此操作。
The AVD locks some resources to be able to run. Clear your .lock directories, the AVD might have not closed properly which resulted into the resources being still locked, AVD unlocks the resources by simply deleting the .lock directories, you can do that manually by deleting the .lock directories.