前阵子在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的库,命令行: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/

转载于:https://www.cnblogs.com/xunbu7/p/4002824.html

aapt: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64相关推荐

  1. error while loading shared libraries: libstdc++.so.5: wrong ELF class: ELFCLASS64

    今天部署一个探针在运行的时候报了这样一个错:error while loading shared libraries: libstdc++.so.5: wrong ELF class: ELFCLAS ...

  2. error while loading shared libraries: libstdc++.so.6

    在编译busybox过程中,配置好make menuconfig后,在make编译时提示: error while loading shared libraries: libstdc++.so.6: ...

  3. snpslmd: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No su

    安装VCS lmg_vcs的时候遇到错误: snpslmd: error while loading shared libraries: libstdc++.so.6: cannot open sha ...

  4. [linux数据库]error while loading shared libraries: libnsl.so.1: wrong ELF class: ELFCLASS32

    解决error while loading shared libraries: libnsl.so.1: wrong ELF class: ELFCLASS32 数据库位数不匹配问题 问题 解决方案 ...

  5. error while loading shared libraries: libstdc++.so.6: cannot open shared object file

    查看谁提供这个.so yum whatprovides libstdc++.so.6 yum install libstdc++-4.8.5-28.el7.i686 #安装上边查出来的.so 此时如果 ...

  6. error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file o

    缺少共享库,有root权限的情况下: 1.找安装包: yum whatprovides libstdc++.so.6 2.执行安装: yum -y install libstdc+±4.8.5-44. ...

  7. linux android gradle构建机器 error while loading shared libraries: libz.so.1: cannot open shared object

    原因:64位 linux 机器缺少32位lib相关的支持库 如果yum 服务器上有 相关的库最好使用 yum 安装,其他 博客上使用 apt-file 安装. 查看libz.so.1属于 glic 库 ...

  8. error while loading shared libraries: ../../lib/libopencv_core.so

    error while loading shared libraries: ../../lib/libopencv_core.so 原文:http://blog.chinaunix.net/uid-2 ...

  9. swig: error while loading shared libraries: libpcre.so.1: cannot open shared object file 亲测解决方法

    安装完毕 PCRE 和 swig 之后,执行 swig -version 发现报错 如下: swig: error while loading shared libraries: libpcre.so ...

最新文章

  1. 鸿蒙系统3.0演示,华为鸿蒙系统3.0-华为鸿蒙系统3.0官网申请地址预约 v1.0-优盘手机站...
  2. v$memory_resize_ops 记录内存变更的视图
  3. XDP/eBPF — 架构设计
  4. 基于 Bochs 的操作系统内核实现
  5. koa中间件机制详解
  6. 在sp_executesql中使用like字句
  7. Python缩进的几个原则
  8. 代码编辑器Sublime Text 可以跨平台(linux,window,os x)
  9. Nginx 架构——【核心流程+模块介绍】
  10. Python Pandas模块教程
  11. Mac上将Lightroom目录导入Capture One的详细步骤
  12. 【转】互联网架构的三板斧
  13. C++对数计算log
  14. 百度网盘 海量资源链接
  15. ArcGIS不同坡度植被覆盖率分析步骤
  16. Python编程:节省内存的办法(持续更新ing...)
  17. 【思维导图】算法设计与分析
  18. MACD指标为什么不灵了?试试QMACD
  19. Instagram API平台文档
  20. 最简单的加载器免杀思路

热门文章

  1. 【POJ3126 Prime Path】【POJ 3087 Shuffle'm Up】【UVA 11624 Fire!】【POJ 3984 迷宫问题】
  2. 8.1 matlab图形窗口与坐标轴(图形对象的句柄和属性、坐标轴的操作、图形窗口的操作)
  3. sepFilter2D函数
  4. QQ音乐爬取(python实现)
  5. Keras函数式API
  6. MATLAB之find函数用法
  7. img文件解包工具_使用tar归档命令,就不怕文件多!
  8. java propertysource_[spring] @PropertySource
  9. django 创建APP 后找不到 templates文件夹下的Html文件
  10. 4-剑指offer: 把数组排成最小的数