新ADT更新后的模拟器问题

时间:2011-07-14 18:40:50

标签: android emulation 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...

6 个答案:

答案 0 :(得分:6)

删除AVD目录中的所有“* .lock”目录,即[...] /。android / avd / [youravd] .avd

答案 1 :(得分:3)

有时您还需要删除snapshots.img

Windows 7上的AVD文件夹路径为:

C:\ Users \(YourUsername)\ .android \ avd \(YourAVDsName.avd)\

答案 2 :(得分:2)

从avd文件夹中删除userdata和sdcard图像文件。这将为我修复此错误

答案 3 :(得分:1)

要在不丢失AVD状态的情况下清除“已在使用中”问题,您需要删除的特定文件是YourAVDName.avd下.lock目录中的“pid”文件。我在AVD没有运行时这样做了,但是我没有关闭AVD就没有测试它,所以我不确定是否有必要(尽管看起来合乎逻辑。)

答案 4 :(得分:1)

清除你的日食AVD(用* .lock文件删除数据)

答案 5 :(得分:0)

AVD锁定一些资源才能运行。清除你的.lock目录,AVD可能没有正确关闭导致资源仍然被锁定,AVD通过简单地删除.lock目录来解锁资源,你可以通过删除.lock目录手动完成。