1、问题现象
aapt: error while loading shared libraries: /lib/x86_64-linux-gnu/libc++.so: file too short
提示找不到类库
2、解决方法一
1、下载 SDK Platform Tools 包 [SDK Platform Tools ](https://developer.android.google.cn/studio/releases/platform-tools?hl=zh-cn)
2、解压 SDK Platform Tools 包,在里面找到 lib64目录中有 libc++.so 文件
3、安装 libc++.so 文件
参考文档:[Linux中error while loading shared libraries错误解决办法](https://blog.youkuaiyun.com/smilejiasmile/article/details/84307527)
1、首先打开/etc/ld.so.conf文件
2、加入动态库文件所在的目录:执行vi /etc/ld.so.conf,在"include ld.so.conf.d/*.conf"下方增加"/usr/local/lib"。
3、将 libc++.so 文件拷贝至 /usr/local/lib 此目录中
4、/sbin/ldconfig -v 执行此命令 立即加载类库文件,不用重启系统
解决方法二
安装 aapt2 [aapt2](https://developer.android.google.cn/studio/command-line/aapt2?hl=en#download_aapt2)
3、测试
执行 aapt 命令是否正常