android libstdc++.so.6: cannot open
来源:互联网 发布:苹果6手机4g网络连不了 编辑:程序博客网 时间:2024/06/03 04:56
在Ubuntu14.04环境下,编译android程序时候,运行ant debug的时候出现如下异常:
[aapt] /opt/Android/adt-bundle-linux-x86_64-20140624/sdk/build-tools/android-4.4W/aapt: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
BUILD FAILED
/opt/Android/adt-bundle-linux-x86_64-20140624/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:
/opt/Android/adt-bundle-linux-x86_64-20140624/sdk/tools/ant/build.xml:698: null returned: 127
在/opt/Android/adt-bundle-linux-x86_64-20140624/sdk/tools/ant/build.xml 文件第 653 行,看到的信息是:
elseText="hasCode = false. Skipping aidl/renderscript/R.java">
在 /opt/Android/adt-bundle-linux-x86_64-20140624/sdk/tools/ant/build.xml 文件第 698行,看到的信息是:
proguardFile="${out.absolute.dir}/proguard.txt">
当前工程确实没有做混淆,但是在 /opt/Android/adt-bundle-linux-x86_64-20140624/sdk/build-tools/android-4.4W/ 目录下,却是有aapt文件的。后来找到解决办法,那就是:解决 lib32stdc++6 的错误问题,安装相应的包。
sudo apt-get install lib32stdc++6sudo apt-get install lib32stdc++6 lib32z1 lib32z1-dev
如果发生下面的问题,则再次更新:
sudo apt-get update --fix-missing
之后再次试验,可见已经正常,可以正确打包:
部分参考:
http://karim-ouda.blogspot.com/2014/02/aapt-error-while-loading-shared.html
http://stackoverflow.com/questions/23597432/adt-libstdc-so-6-cannot-open-shared-object-file
- android libstdc++.so.6: cannot open
- Android SDK - aapt error : libstdc++.so.6 cannot open shared object file
- libstdc++.so.6: cannot open shared object file
- ubuntu编译android出现error while loading shared libraries: libstdc++.so.6: cannot open shared objec的解决方法
- libstdc++.so.6: cannot open shared object file: No such file or directory的问题
- error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file
- debian系统项目移植报:libstdc++.so.6: cannot open shared object file
- adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file:
- libstdc++.so.6: cannot open shared object file: No such file or directory
- error while loading shared libraries: libstdc++.so.6: cannot open shared obj
- libstdc++.so.6: cannot open shared object file: No such file or directory
- 【FAQ】Gradle编译,error while loading shared libraries: libstdc++.so.6: cannot open shared object file
- ubuntu64位安装交叉编译器出现libstdc++.so.6: cannot open shared object file
- arm-linux-gnueabihf-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared ob
- libstdc++.so.6: cannot open shared object file: No such file or directory
- 关于错误 libstdc++.so.6:cannot open shared object file 和 libstdc++.so.6: wrong ELF class 的解决和思考
- error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file o
- mongodb 安装错误error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No
- 选择排序
- OGNL
- Struts2标签
- [DEEP LEARNING An MIT Press book in preparation]Linear algebra
- QT父子与QT对象delete
- android libstdc++.so.6: cannot open
- jacob根据word模板生成文
- android呼叫流程分析--整体介绍
- 使用eclipse查看Hadoop1.2.1源码
- 杭电2059感想
- 网络编程学习笔记(freeaddrinfo函数)
- 显卡驱动导致的屏保运行假死
- JAVA_03 String数据类型
- HDOJ 2063 过山车(二分图匹配)