启用快照后 Android 模拟器失败

发布于 2024-10-20 03:23:09 字数 2310 浏览 6 评论 0原文

两天前我安装了所有 Android SDK 更新。早些时候,我有 2.2 API 8,修订版 2。升级后,我启用了快照 - 我无法在启用快照的情况下启动模拟器。我在控制台
中收到此消息(红色) NAND:nand_dev_load_disk_state ftruncate 失败:参数无效

我几乎每 5 秒就会在 logcat 中收到此消息
03-03 19:45:38.008:警告/MountService(59):mReady 等待太久!

此消息出现之前的跟踪如下所示

03-03 19:39:56.633: INFO/SystemServer(59): Mount Service  
03-03 19:39:56.672: INFO/SystemServer(59): Notification Manager  
03-03 19:39:56.722: INFO/SystemServer(59): Device Storage Monitor  
03-03 19:39:56.752: ERROR/VoldConnector(59): No connection to daemon  
03-03 19:39:56.752: ERROR/VoldConnector(59): java.lang.IllegalStateException  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.NativeDaemonConnector.sendCommand(NativeDaemonConnector.java:191)  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.NativeDaemonConnector.sendCommand(NativeDaemonConnector.java:178)  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.NativeDaemonConnector.doCommand(NativeDaemonConnector.java:213)  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.NativeDaemonConnector.doListCommand(NativeDaemonConnector.java:258)  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.MountService$2.run(MountService.java:425)  
03-03 19:39:56.783: INFO/SystemServer(59): Location Manager  
03-03 19:39:56.793: INFO/SystemServer(59): Search Service  
03-03 19:39:56.802: INFO/SystemServer(59): DropBox Service

有人可以告诉我我的设置可能有什么问题吗?我附上已安装软件包的屏幕截图。

在此处输入图像描述

模拟器无法启动我必须杀死它并在禁用快照的情况下重新启动 Eclipse。 http://tools.android.com/recent/emulatorsnapshots

禁用快照 - 以下是logcat 看起来像

03-04 04:17:41.387: INFO/SystemServer(73): Device Storage Monitor  
03-04 04:17:41.398: INFO/PackageManager(73): Updating external media status from unmounted to unmounted  
03-04 04:17:41.407: DEBUG/VoldCmdListener(29): share status ums  
03-04 04:17:41.457: INFO/SystemServer(73): Location Manager  

AVD 平台是 2.2/API 8
谢谢

@格雷格
以下是 AVD 的详细信息
在此处输入图像描述

Two days ago I installed all the Android SDK updates. Earlier I had 2.2 API 8, Revision 2. After the upgrade I enabled snapshot - I am not able to start the emulator with Snapshot enabled. I get this message (in red) in the Console
NAND: nand_dev_load_disk_state ftruncate failed: Invalid argument

I get this message in logcat almost every 5 seconds
03-03 19:45:38.008: WARN/MountService(59): Waiting too long for mReady!

the trace before this message appears is shown below

03-03 19:39:56.633: INFO/SystemServer(59): Mount Service  
03-03 19:39:56.672: INFO/SystemServer(59): Notification Manager  
03-03 19:39:56.722: INFO/SystemServer(59): Device Storage Monitor  
03-03 19:39:56.752: ERROR/VoldConnector(59): No connection to daemon  
03-03 19:39:56.752: ERROR/VoldConnector(59): java.lang.IllegalStateException  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.NativeDaemonConnector.sendCommand(NativeDaemonConnector.java:191)  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.NativeDaemonConnector.sendCommand(NativeDaemonConnector.java:178)  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.NativeDaemonConnector.doCommand(NativeDaemonConnector.java:213)  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.NativeDaemonConnector.doListCommand(NativeDaemonConnector.java:258)  
03-03 19:39:56.752: ERROR/VoldConnector(59):     at com.android.server.MountService$2.run(MountService.java:425)  
03-03 19:39:56.783: INFO/SystemServer(59): Location Manager  
03-03 19:39:56.793: INFO/SystemServer(59): Search Service  
03-03 19:39:56.802: INFO/SystemServer(59): DropBox Service

Can anyone please tell me what could be wrong with my setup? I am attaching a screenshot of Installed packages.

enter image description here

The emulator does not start I have to kill it and restart eclipse with with snapshot disabled.
http://tools.android.com/recent/emulatorsnapshots

With Snapshot disabled - here is what logcat looks like

03-04 04:17:41.387: INFO/SystemServer(73): Device Storage Monitor  
03-04 04:17:41.398: INFO/PackageManager(73): Updating external media status from unmounted to unmounted  
03-04 04:17:41.407: DEBUG/VoldCmdListener(29): share status ums  
03-04 04:17:41.457: INFO/SystemServer(73): Location Manager  

The AVD platform is 2.2/API 8
Thank you

@Greg
Here are the details for AVD
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

简美 2024-10-27 03:23:09

尝试拔掉sd卡看看是否有效。

Try removing the sdcard and see if it works.

花桑 2024-10-27 03:23:09

这是我所做的和结果:
在AVD管理器中,编辑avd,有模拟选项,取消选择快照选项。(我忘记为什么选择它,但我猜快照丢失了,并导致错误。)并且它有效。希望有帮助。

here's what i did and result:
in AVD manager, edit the avd, there is Emulation Options, deselect the Snapshot option.(i forget why i selected it, but i guess the snap shot is missing, and causes the error.) and it works. hope it helps.

丶情人眼里出诗心の 2024-10-27 03:23:09

该问题可能是由快照名称中的空格字符引起的。尝试编辑名称以确保没有空格字符。

The problem may be caused by space characters within the snapshot name. Try editing the name to ensure no space characters.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文