Ubuntu 13.10上的Gradle调用"成功完成,出现1个错误"

Jua*_*tro 8 ubuntu android gradle android-studio

因此,在Ubuntu 13.04 64位上在Android Studio 0.5.2上创建新项目并尝试在物理设备上运行时,会出现以下错误:

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
Run Code Online (Sandbox Code Playgroud)

我在MacBook Pro上有相同的设置(AS 0.5.2),Gradle成功完成,没有任何错误,所以一定有问题.我还必须安装32位版本的几个库才能让adb在我的64位Ubuntu上运行.也许那是怎么回事?任何帮助,将不胜感激.

编辑还尝试安装以下库:

$sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
Run Code Online (Sandbox Code Playgroud)

没运气.

Jua*_*tro 11

通过重新安装修复它

sudo apt-get install lib32z1 lib32z1-dev
Run Code Online (Sandbox Code Playgroud)

不管怎么说,还是要谢谢你!