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 have the same setup (AS 0.5.2) on a MacBook Pro and Gradle succeeds without any errors, so something should be wrong. I also had to install 32-bit versions of several libraries to make adb work on my 64-bit Ubuntu. Maybe what's 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
Bad luck.
android android-studio ubuntu gradle
Juan josé castro
source share