如何使 Android 的 aapt 和 adb 在没有 ia32-libs 的 64 位 Ubuntu 上工作(适用于版本 12、13 和 14) [英] How to make Android's aapt and adb work on 64-bit Ubuntu without ia32-libs (works for versions 12, 13 and 14)

查看:34
本文介绍了如何使 Android 的 aapt 和 adb 在没有 ia32-libs 的 64 位 Ubuntu 上工作(适用于版本 12、13 和 14)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 Ubuntu 13.10 不再有 ia32-libs,我无法在 13.10 的全新安装上运行我的 android 开发环境.

Since Ubuntu 13.10 no longer has ia32-libs I cannot get my android development environment running on a clean install of 13.10.

错误是 ~/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory

The error is ~/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory

这个文件确实存在并且是可执行的,但它是一个 32 位的可执行文件.

This file does exist and is executable but it is a 32bit executable.

在之前的安装中,我刚刚安装了 ia32-libs 来解决这个问题,但此解决方案不再适用于 Ubuntu 13.10.

In previous installs I just installed ia32-libs to fix this but this solution no longer works for Ubuntu 13.10.

我已经尝试过 askubuntu 问题提出的解决方案,例如.这个 https://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package

I have tried solutions proposed by askubuntu questions eg. this one https://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package

但它对我不起作用.从 askubuntu.com 的答案中,我看到我应该使用

but it isn't working for me. From that askubuntu.com answer I see I should install separate packages with

sudo apt-get install package:i386 

但我不知道要安装哪些软件包才能使 android 工具再次运行.

but I don't know which packages to install to make the android tools work again.

有没有其他人解决过这个问题,或者有没有人有需要为 android 工具安装的软件包列表?

Has anyone else solved this problem and or does anyone have a list of packages which need to be installed for the android tools?

推荐答案

虽然在当前版本的 Ubuntu (13.10) 中不需要 dpkg --add-architecture i386 命令,但在当前的 Debian 版本 (7.x),未来的 Ubuntu 版本也需要它.所以我要把它留在里面.在 Ubuntu 13.10 中忽略它.

While dpkg --add-architecture i386 command is not needed in the current version of Ubuntu (13.10), it is required in the current Debian versions (7.x) and it will be required in the future Ubuntu versions as well. So I am going to leave it in. Just ignore it for Ubuntu 13.10.

sudo dpkg --add-architecture i386
sudo apt-get -qqy update
sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386

更新:aapt 确实需要 zlib,所以我将它添加到列表中.但是您不应该需要任何 lib32 包.

Update: aapt indeed requires zlib so I added it to the list. But you should not be needing any lib32 packages.

这篇关于如何使 Android 的 aapt 和 adb 在没有 ia32-libs 的 64 位 Ubuntu 上工作(适用于版本 12、13 和 14)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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