在Ubuntu 11.10 Android模拟器崩溃 [英] Android emulator crashes on Ubuntu 11.10

查看:519
本文介绍了在Ubuntu 11.10 Android模拟器崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Android SDK在我的Ubuntu 11.10(32位)的机器。我还安装了Eclipse(3.7)和Android开发相关的插件,都在openjdk6。使用Eclipse,我成功地创建了一个Android虚拟设备(使用AVD管理器)。然而,当我尝试运行该虚拟设备,通过Eclipse或使用模拟器Android SDK中的可执行文件,仿真设备显示了几秒钟,然后崩溃以下消息:

I installed the Android SDK on my Ubuntu 11.10 (32-bit) machine. I also installed Eclipse (3.7) and the associated plugins for Android development, all on openjdk6. Using eclipse, I successfully created an Android Virtual Device (using AVD Manager). However when I try to run this virtual device, through Eclipse OR using the "emulator" Android SDK executable, the emulated device shows up for a couple of seconds and then crashes with the following message:

[XCB]未知的序列号,同时处理队列[XCB]最有可能的
  这是一个多线程客户端和XInitThreads尚未调用
  [XCB]中止,我们对此深感抱歉。

[xcb] Unknown sequence number while processing queue [xcb] Most likely
this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.

模拟器臂:../../src/xcb_io.c:273:poll_for_event:断言   `!xcb_xlib_threads_sequence_lost失败。

emulator-arm: ../../src/xcb_io.c:273: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.

中止

我试着在Google上搜寻这个问题,但无法得到一个有效的解决方案。有人建议从OpenJDK的切换到太阳/ oracle的JDK。我想这(openjdk6 - >甲骨文JDK7),但结果没有变化。再次使用了最新的补丁同样的结果也更新的Ubuntu 11.10。我的机器是IBM的Thinkpad R52与奔腾M处理器1.73GHz的,1 GB内存,与Ubuntu上运行了一个外部硬盘驱动器中。

I tried googling the problem, but could not get a working solution. Some suggested switching from openjdk to the sun/oracle jdk. I tried this (openjdk6 -> oracle jdk7), but no change in the result. Also updated Ubuntu 11.10 using the latest patches with the same result again. My machine is an IBM Thinkpad R52 with Pentium M processor 1.73GHz, 1 GB RAM, with Ubuntu running out of an external hard drive.

你知道吗?

推荐答案

我有一个权限问题,就像普拉莫德的评论,以表明原来的问题。就我而言, DDMS 不是可执行文件。

I had a permissions problem, much like Pramod's comment to the original question indicated. In my case, ddms wasn't executable.

要解决:

CD /路径/要/安卓/ SDK /工具

一旦你在工具文件夹:

搭配chmod + X DDMS

同样的方法应该工作,如果您有任何其他的非可执行文件导致类似的问题。

The same approach should work if you have any other non-executable files causing similar problems.

这篇关于在Ubuntu 11.10 Android模拟器崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆