android-sdks/build-tools/17.0.0/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

后端 未结 12 1598
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 03:00

I just installed eclipse, the android sdk and jdk on a fresh installation for 64 bit fedora 14 , but by the time i create a new project i am getting the following error in t

相关标签:
12条回答
  • 2020-11-29 03:19

    I fixed this issue using the solution shared in this blog post:

    http://ideid.blogspot.co.uk/2013/01/resolve-shared-library-problem-with.html

    Here is the solution for convenience:

    "Android SDK is compiled for a 32-bit GNU/Linux system, and your system is a 64-bit system. To solve this error, install the 32-bit versions of all the most commonly used libraries, by installing the ia32-libs package

    Go to the terminal and type the following command.

    sudo apt-get install ia32-libs

    This will solve the issue."

    Hope this helps

    0 讨论(0)
  • 2020-11-29 03:20

    I faced similar issue on my centos machine.

    check out this: https://ask.fedoraproject.org/en/question/9556/how-do-i-install-32bit-libraries-on-a-64-bit-fedora/

    For me it worked by: yum install libstdc++.i386 zlib.i386

    0 讨论(0)
  • 2020-11-29 03:21

    Lukacsa, it works! simple and great suggestion

    Try this:

    sudo yum install zlib.i686 libstdc++.i686
    

    This will resolve 64 bit machine's 32 bit compatibility issue~!

    (Tested with: CentOS 6.2 64-bit and Fedora 22 64-bit)

    0 讨论(0)
  • 2020-11-29 03:25

    Try this: sudo yum install zlib.i686

    0 讨论(0)
  • 2020-11-29 03:28

    aapt is a 32 bit app so your 64 bit machine needs these libraries loaded

    sudo dpkg --add-architecture i386
    sudo apt-get -qqy update
    sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386
    
    0 讨论(0)
  • 2020-11-29 03:32

    Add a :i386 suffix to the package name for the package manager correctly identify it:

    sudo apt-get install zlib1g:i386
    
    0 讨论(0)
提交回复
热议问题