关于解决:aapt: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
2014-09-10 18:57
661 查看
前阵子在ubuntu上搭载安卓的开发环境(Eclipse+Sdk+Adt),搭载是完成了,但是却出现了该问题:
aapt: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
该问题还导致了创建的Android的App没有自动生成R.java!一开始一直在查找如何解决没有自动生成R.java的原因,网上所有的解决方式都已经尝试过了,结果还是失败!
对于一个刚接触linux的人来说,我也好多都不懂,不过最终还是google到了答案:
应该是64bit的程序aapt尝试读取32bit的库函数,而我的ubuntu没有安装该32bit的库,所以不能实现所有的功能;
因此,需要安装对应的32bit的库,命令行:
aapt: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
该问题还导致了创建的Android的App没有自动生成R.java!一开始一直在查找如何解决没有自动生成R.java的原因,网上所有的解决方式都已经尝试过了,结果还是失败!
对于一个刚接触linux的人来说,我也好多都不懂,不过最终还是google到了答案:
应该是64bit的程序aapt尝试读取32bit的库函数,而我的ubuntu没有安装该32bit的库,所以不能实现所有的功能;
因此,需要安装对应的32bit的库,命令行:
sudo apt-get install lib32ncurses5 lib32stdc++6
重启Eclipse问题解决。
更多相关的问题机器详细的解决地址:http://blog.timmattison.com/archives/2011/11/02/how-to-install-googles-android-eclipse-plugin-and-or-adb-on-64-bit-debian-ubuntu/
相关文章推荐
- aapt: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64
- error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS32
- error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32 的解决
- 解决:error while loading shared libraries: libmysqlclient_r.so.15: wrong ELF class: ELFCLASS64问题
- error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32 的解决
- error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32 的解决
- 解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
- error while loading shared libraries: libmysqlclient_r.so.15: wrong ELF class: ELFCLASS64
- error while loading shared libraries: liblzo2.so.2: wrong ELF class: ELFCLASS64
- error while loading shared libraries: libfreebl3.so: wrong ELF class: ELFCLASS64
- ubuntu编译android出现error while loading shared libraries: libstdc++.so.6: cannot open shared objec的解决方法
- error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32 的解决
- 解决:/home/catia/android-sdks/platform-tools/aapt: error while loading shared libraries: libz.so.1: c
- error while loading shared libraries: libstdc++.so.6
- ubuntu arm-linux-gnueabihf-gcc: error while loading shared libraries: libstdc++.so.6
- arm-linux-gnueabihf-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared ob
- error while loading shared libraries: libjpeg.so.62: wrong ELF class: ELFCLASS64
- error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file
- 启动MongoDB时,提示:error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
- 解决:/home/catia/android-sdks/platform-tools/aapt: error while loading shared libraries: libz.so.1: c