7

我已经在 Ubuntu 12.10 上成功安装了 android SDK 和 android eclipse 插件。我在 Eclipse 中创建了 AVD,现在它没有运行。这是我在运行 AVD 时收到的输出错误:它提示:

Starting emulator for AVD 'avd'
Failed to start emulator: Cannot run program "/home/sancai/android/adt-bundle-linux-x86_64-20130522/sdk//tools/emulator": java.io.IOException: error=2, No such file or directory

我通过google找资料,大家都说这是因为我的系统版本是64,而adt只支持32,要安装:sudo apt-get install ia32-libs,当我安装32位库时,出现其他问题如库文件关联到其他库,但没有其他库文件完整,提示:

sancai@ubuntu:~$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ia32-libs : Depends: ia32-libs-multiarch but it is not installable
E: Unable to correct problems, you have held broken packages.

sancai@ubuntu:~$ sudo apt-get install ia32-libs-multiarch
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libs-multiarch is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ia32-libs-multiarch' has no installation candidate
4

6 回答 6

30

这应该有助于:

转到 xx/sdk/tools 并运行:

mv emulator emulator.bak
ln -s emulator64-arm emulator

无需安装任何 ia32 库。

于 2014-03-11T21:43:07.983 回答
10

这是答案http://astroelec.blogspot.com/

(使用 Debian)安装 ia32-libs 将不再起作用,因为 debian 已转向多架构支持。解决方案。使用 Multiarch Multiarch 支持使从 i386 发行版安装库变得容易...

sudo dpkg --add-architecture i386
sudo aptitude update
sudo aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

现在启动 eclipse,现在一切都应该正常了。

于 2013-08-23T17:30:20.593 回答
2

在我的配置中,我已将虚拟设备设置为使用 Intel Atom 系统映像。来自伊利诺伊大学的 Lawrence Angrave在他的 Coursera androidapps101 课程中表示,它将比 ARM 镜像运行得更快。所以这对我有用:

mv emulator emulator_bak
ln -s emulator64-x86 emulator
于 2014-12-09T11:14:30.577 回答
1

您不再需要安装包!

在目录工具中,有很多类型emulator,而我的电脑使用emulator64-arm!我的系统是Linux Mint 16 amd64!祝你好运!

./emulator64-arm @yxphone -sdcard yxsd -scale 0.8
于 2013-12-13T08:38:05.643 回答
1

这很容易,这是我的解决方案。复制并粘贴,这行在你的终端。

apt-get install libncurses5:i386 \
                   libstdc++6:i386 \
                   zlib1g:i386

祝你好运!!

于 2015-06-08T00:51:23.217 回答
-1

这可能会有所帮助

sudo aptitude install ia32-libs lib32ncurses5 lib32stdc++6
于 2013-10-23T19:20:02.480 回答