「SDK」

  CREATED BY JENKINSBOT

adb 依赖32位库:

./adb: No such file or directory

# apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

./adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

# apt-get install lib32stdc++6

64bit的系统,Android sdk只有32bit的程序,需要安装ia32-libs,才能使用。

解决方法:

sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386

sudo apt-get install libqt4-opengl

sudo apt-get install libglu1-mesa

sudo apt-get ia32-libs-multiarch

sudo apt-get install ia32-libs

SDK64位的运行需要32位的库文件;

本机为Centos:
1./lib/ld-linux.so.2: bad ELF interpreter: No such file or directory,这个错误是因为在64系统里执行了32位程序,安装下glibc即可解决.

通过sudo yum whatprovides ld-linux.so.2 命令找到包含ld-linux.so.2的包(glibc-2.12-1.107.el6.i686),然后
sudo yum install glibc-2.12-1.107.el6.i686

2.error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory.

通过sudo yum whatprovides libz.so.1 命令找到包含libz.so.1的包(zlib-1.2.3-29.el6.i686),然后
sudo yum install zlib-1.2.3-29.el6.i686

3.error while loading shared libraries: ibstdc++.so.6: cannot open shared object file: No such file or directory.

通过sudo yum whatprovides libstdc++.so.6 命令找到包含libstdc++.so.6的包(libstdc++-4.4.7-3.el6.i686),然后
sudo yum install libstdc++-4.4.7-3.el6.i686

完成以上3个步骤后Clean一下工程,R.java文件就出现了。

如果出现错误那就是因为adb是32位的,要装ia32-libs。ubuntu下面是sudo apt-get install ia32-libs

可是centos不行,centos是不能安装deb的,不过你可以解压deb后使用。

在命令中打入

#yum install glibc.i686

什么?你的不行吗? 对,可能有的在打入这个命令时候没有glibc.i686。那怎么办呢,接下来复制下面这个长命令,然后输入执行:

#yum install alsa-lib-devel.i686 alsa-lib-devel audiofile-devel.i686 audiofile-devel cups-devel.i686 cups-devel dbus-devel.i686 dbus-devel fontconfig-devel.i686 fontconfig-devel freetype.i686 freetype-devel.i686 freetype-devel giflib-devel.i686 giflib-devel lcms-devel.i686 lcms-devel libICE-devel.i686 libICE-devel libjpeg-turbo-devel.i686 libjpeg-turbo-devel libpng-devel.i686 libpng-devel libSM-devel.i686 libSM-devel libusb-devel.i686 libusb-devel libX11-devel.i686 libX11-devel libXau-devel.i686 libXau-devel libXcomposite-devel.i686 libXcomposite-devel libXcursor-devel.i686 libXcursor-devel libXext-devel.i686 libXext-devel libXi-devel.i686 libXi-devel libXinerama-devel.i686 libXinerama-devel libxml2-devel.i686 libxml2-devel libXrandr-devel.i686 libXrandr-devel libXrender-devel.i686 libXrender-devel libxslt-devel.i686 libxslt-devel libXt-devel.i686 libXt-devel libXv-devel.i686 libXv-devel libXxf86vm-devel.i686 libXxf86vm-devel mesa-libGL-devel.i686 mesa-libGL-devel mesa-libGLU-devel.i686 mesa-libGLU-devel ncurses-devel.i686 ncurses-devel openldap-devel.i686 openldap-devel openssl-devel.i686 openssl-devel zlib-devel.i686 pkgconfig sane-backends-devel.i686 sane-backends-devel xorg-x11-proto-devel glibc-devel.i686 prelink fontforge flex bison libstdc++-devel.i686 pulseaudio-libs-devel.i686 gnutls-devel.i686 libgphoto2-devel.i686 openal-soft-devel openal-soft-devel.i686 isdn4k-utils-devel.i686 gsm-devel.i686 samba-winbind libv4l-devel.i686 cups-devel.i686 libtiff-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 gettext-devel.i686 libmpg123-devel.i686