aapt:加载共享库时出错:libc ++。so

时间:2016-07-22 12:45:25

标签: android android-sdk-tools

我们在构建期间遇到错误:

AAPT err(Facade for 1550528231): /usr/local/android-sdk/build-tools/23.0.3/aapt: error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory

我们安装了两个build-tools

# ls -l /usr/local/android-sdk/build-tools/
total 8
drwxr-xr-x 4 root root 4096 Jul 22 11:43 23.0.1
drwxr-xr-x 4 root root 4096 Jul 22 11:50 23.0.3

23.0.3 - 手动下载并解压缩。

两者都有libc++.so

# find /usr/local/android-sdk/build-tools/ -name 'libc++.so'
/usr/local/android-sdk/build-tools/23.0.3/lib/libc++.so
/usr/local/android-sdk/build-tools/23.0.1/lib/libc++.so

/usr/local/android-sdk/build-tools/23.0.1/lib/已添加到$PATH$LD_LIBRARY_PATH

$ echo $PATH
/usr/local/maven-3.2.5/bin:/usr/local/gradle-1.5/bin:/usr/share/centrifydc/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools:/usr/local/android-sdk/build-tools/23.0.3/lib/:/opt/awscli/bin:/usr/local/sonar-runner/bin:/usr/local/android-sdk/build-tools/23.0.3

$ echo $LD_LIBRARY_PATH
/usr/local/android-sdk-23.0.2/build-tools/23.0.3/lib/l

这里有什么问题?

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.2 LTS
Release:        12.04

0 个答案:

没有答案