Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle invocation "completing successfully with 1 error" on Ubuntu 13.10

So I get the following error when creating a new project on Android Studio 0.5.2 on Ubuntu 13.04 64-bit and trying to run it on a physical device:

Information:/home/juan/Documents/android-studio/sdk/build-tools/android-4.4.2/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory 

Error:Execution failed for task ':app:mergeDebugResources'.
> Error: Failed to run command:
/home/juan/Documents/android-studio/sdk/build-tools/android-4.4.2/aapt s -i
/home/juan/AndroidStudioProjects/MyApplication4/app/build/exploded-aar/com.android.support/appcompat-v7/19.0.1/res/drawable-hdpi/abc_list_selector_disabled_holo_light.9.png -o /home/juan/AndroidStudioProjects/MyApplication4/app/build/res/all/debug/drawable-hdpi/abc_list_selector_disabled_holo_light.9.png
  Error Code:
    127
  Output:
    /home/juan/Documents/android-studio/sdk/build-tools/android-4.4.2/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

I've got the same setup (AS 0.5.2) on a MacBook Pro and Gradle completes successfully with no errors at all, so something must be wrong. I also had to install 32-bit versions of a couple libraries to get adb working on my 64-bit Ubuntu. Maybe that's whats going on here? Any help would be appreciated.

EDIT Also tried installing the following libraries:

$sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5

No luck.

like image 862
Juan José Castro Avatar asked Mar 27 '14 04:03

Juan José Castro


1 Answers

fixed it by reinstalling

sudo apt-get install lib32z1 lib32z1-dev

Thanks anyway!

like image 164
Juan José Castro Avatar answered Oct 04 '22 13:10

Juan José Castro