aapt 失踪,但它在那里 [英] aapt missing but its there
问题描述
由于某些原因,我不得不重新安装 ubuntu-14.04-64.
I had to reinstall ubuntu-14.04-64 due to reasons.
重新安装后,当我尝试构建我的 android 项目时,我在输出中得到了一堆这些行(以及其他行):
After this reinstall, when I try to build my android projets, I get a bunch of these lines (among others) in output:
java.io.IOException: Cannot run program "/home/gps/Android/Sdk/build-tools/23.0.2/aapt": error=2, No such file or directory
现在,我知道这个文件存在于我的设置中,因为:
Now, I know this file exists in my setup because this:
gps@gps-HP-ProBook-4540s:~$ ls -l /home/gps/Android/Sdk/build-tools/23.0.2/aapt
-rwxrwxr-x 1 gps gps 1146608 Jan 4 18:47 /home/gps/Android/Sdk/build-tools/23.0.2/aapt
gps@gps-HP-ProBook-4540s:~$ file /home/gps/Android/Sdk/build-tools/23.0.2/aapt
/home/gps/Android/Sdk/build-tools/23.0.2/aapt: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=fc8aded5418584519d59f2133e81184fe3d4bdfd, not stripped
gps@gps-HP-ProBook-4540s:~$
我已经安装了 v19 以后的所有 sdk 工具.将项目设置更改为其中任何一个都会显示相同的错误.
I have installed all sdk tools from v19 onwards. Changing project settings to any of them shows same error.
此外,尝试直接执行文件也会出现相同的错误:
Also, trying to execute the file directly gives same error:
gps@gps-HP-ProBook-4540s:~$ /home/gps/Android/Sdk/build-tools/23.0.2/aapt
bash: /home/gps/Android/Sdk/build-tools/23.0.2/aapt: No such file or directory
有人可以建议解决这个问题吗?
Can someone suggest a solution to this problem?
推荐答案
您可能缺少程序需要的一些动态链接库.运行此命令以列出它使用的库并安装缺少的库:
You're probably missing some dynamic link library that the program needs. Run this command to list the libraries it uses and install those that are missing:
ldd /home/gps/Android/Sdk/build-tools/23.0.2/aapt
这篇关于aapt 失踪,但它在那里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!