erro com libz.so.1 no android studio [duplicado]

7

É a primeira vez que eu abro um projeto no android studio, e o primeiro erro que eu recebo é o seguinte:

Execution failed for task ':app:mergeDebugResources'.
Error: Failed to run command:
/home/giacomotb/Programs/android-studio/sdk/build-tools/android-4.4/aapt s -i /home/giacomotb/AndroidStudioProjects/ProvaDBCinema/app/build/exploded-bundles/ComAndroidSupportAppcompatV71900.aar/res/drawable-hdpi/abc_list_selector_disabled_holo_light.9.png -o /home/giacomotb/AndroidStudioProjects/ProvaDBCinema/app/build/res/all/debug/drawable-hdpi/abc_list_selector_disabled_holo_light.9.png
**Error Code:127**
Output:
/home/giacomotb/Programs/android-studio/sdk/build-tools/android-4.4/aapt: error while loading shared libraries: **libz.so.1: cannot open shared object file: No such file or directory**

Eu tentei fazer estes comandos:

apt-get install lib32ncurses5 lib32stdc++6

que vai bem e aquele:

sudo apt-get update
sudo apt-get install ia32-libs

que diz:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32z1 lib32ncurses5 lib32bz2-1.0

E: Package 'ia32-libs' has no installation candidate

Não consigo encontrar outra solução na Web.

o que devo fazer?

Eu uso o Ubuntu 13.10 x64

    
por giacomotb 27.12.2013 / 19:50

2 respostas

27

Use o lib32z1 - trabalhado para mim (Ubuntu 13.10).

sudo apt-get install lib32z1
    
por Vinux7 04.04.2014 / 22:15
4

Eu tive o mesmo problema. Eu instalei alguns pacotes, mas isso parece ter resolvido isso

sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
    
por theczechsensation 29.12.2013 / 03:37

Tags