1. 程式人生 > >Centos下配置Android 打包環境

Centos下配置Android 打包環境

   在Cent os下配置android 的maven打包環境,出現問題如下:
問題1.
 [INFO] /bin/sh: /home/wduser/Tools/adt-bundle-linux-x86_64/sdk/build-tools/android-4.4W/aapt: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
解決方法:
是因為64位系統中安裝了32位程式
解決方法:
yum install glibc.i686
重新安裝以後還有如下類系錯誤 再繼續安裝包
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
yum install libstdc++.so.6

問題2.


error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
解決方法:
yum install lib32z1
問題3:
g++ command not found
解決方法(root使用者下):
yum install gcc-c++