【问题标题】:My new Android virtual device is not working我的新 Android 虚拟设备无法正常工作
【发布时间】:2014-07-13 14:34:10
【问题描述】:

我是 Android 软件开发的新手。我下载了 adt-bundle-linux-x86_64-20140702 ,还下载了 android 4.4W (API 20) 的 android 系统映像。当我创建新的 android 虚拟设备时,我给出了这个错误:

一个无法加载的安卓虚拟设备。

当我启动这个虚拟设备时,我给出了这个错误:

无法启动模拟器:无法运行程序“/home/sosin/Desktop/ADT/adt-bundle-linux-x86_64-20140702/sdk//tools/emulator”:java.io.IOException: error=2, No这样的文件或目录

谁能帮帮我?

当我尝试安装这些软件包时,我给出了这个错误:

包是:

lib32z1 lib32ncurses5 lib32bz2-1.0 libc6-i386

错误是:

The following packages have unmet dependencies: lib32bz2-1.0 : PreDepends: libc6-i386 (>= 2.9-18) but it is not going to be installed lib32ncurses5 : Depends: lib32tinfo5 (= 5.9-10) but it is not going to be installed Depends: libc6-i386 (>= 2.4) but it is not going to be installed lib32z1 : Depends: libc6-i386 (>= 2.4) but it is not going to be installed E: Unable to correct problems, you have held broken packages.

【问题讨论】:

  • 你是什么 Linux 发行版?该路径是否存在 (/home/sosin/Desktop/ADT/adt-bundle-linux-x86_64-20140702/sdk//tools/emulator)?
  • 我的 Linux 发行版是 Debian 7.0,是的,该路径存在。
  • ldd /path/to/emulator 的输出是什么?
  • ldd /home/sosin/Desktop/ADT/adt-bundle-linux-x86_64-20140702/sdk/tools/emulator 的输出是:不是动态可执行文件
  • 路径中sdk 后面有两个正斜杠。这可能是问题吗?

标签: android linux eclipse avd eclipse-adt


【解决方案1】:

您应该从 packages.debian.org 下载低于版本的软件包。然后通过dpkg -i path/filename安装。如果你不使用命令行的dpkg,你使用aptitude offer。它可以让您降级您的软件包。

使用能力,例如: aptitude install libc6-i386 lib32z1 使用此命令后,尝试安装 lib32z1 lib32ncurses5 lib32bz2-1.0 sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 或用于早期版本: sudo apt-get install ia32-libs

【讨论】:

    【解决方案2】:

    您可能使用的是 64 位 Ubuntu,我也遇到了这个问题 参考这个 the android emulator does not start, avd

    对于最新的 Ubuntu,您可以安装:

    sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
    

    对于旧版本,请访问:

    sudo apt-get install ia32-libs
    

    【讨论】:

    • 当我尝试时我给出了这个错误:The following packages have unmet dependencies: lib32bz2-1.0 : PreDepends: libc6-i386 (>= 2.9-18) but it is not going to be installed lib32ncurses5 : Depends: lib32tinfo5 (= 5.9-10) but it is not going to be installed Depends: libc6-i386 (>= 2.4) but it is not going to be installed lib32z1 : Depends: libc6-i386 (>= 2.4) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
    • 我认为你应该先更新你的仓库,通过 sudo apt-get update 然后尝试安装这些包
    • 我这样做了,但还是有问题
    • 我使用了不稳定的包,它的版本不合适。我将libc6-i386 替换为较低版本并使用您的命令,然后运行虚拟设备。请将此信息添加到您的答案中,我会接受我的问题。
    猜你喜欢
    • 1970-01-01
    • 2014-12-11
    • 2012-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多