Aapt不见了,但在那里 [英] aapt missing but its there
问题描述
由于某些原因,我不得不重新安装ubuntu-14.04-64.
I had to reinstall ubuntu-14.04-64 due to reasons.
重新安装后,当我尝试构建android projets时,在输出中会得到很多这样的代码行:
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屋!