Gradle aapt不是文件

时间:2014-04-24 18:33:22

标签: java android gradle android-studio build-error

我尝试用android studio构建一个Android应用程序。当我尝试构建时,Gradle会抛出此错误:

  

Gradle调用成功完成,10秒内出现1个错误

并且消息gradle构建窗口显示:

  

错误:任务执行失败   ':SlidingUpPanelLayout:processReleaseResources&#39 ;.   java.io.IOException:无法运行程序" / home /[...]/ android-studio / sdk / build-tools / 19.0.2 / aapt":error = 2,No   这样的文件或目录

但是ls -l显示了这个文件:

~/development/android-studio/sdk/build-tools/19.0.2$ ls -l
total 49348
-rwxr-xr-x 1 david david  1109734 Apr 12 12:29 aapt
-rwxr-xr-x 1 david david   271551 Apr 12 12:29 aidl
-rwxr-xr-x 1 david david  3570836 Apr 12 12:29 arm-linux-androideabi-ld
-rwxr-xr-x 1 david david    36534 Apr 12 12:29 bcc_compat
-rwxr-xr-x 1 david david   445402 Apr 12 12:29 dexdump
-rwxr-xr-x 1 david david     2577 Apr 12 12:29 dx
-rwxr-xr-x 1 david david  3570836 Apr 12 12:29 i686-linux-android-ld
drwxr-xr-x 2 david david     4096 Apr 12 12:29 lib
-rwxr-xr-x 1 david david   332357 Apr 12 12:29 libbcc.so
-rwxr-xr-x 1 david david   932160 Apr 12 12:29 libbcinfo.so
-rwxr-xr-x 1 david david 15372369 Apr 12 12:29 libclang.so
-rwxr-xr-x 1 david david 21101517 Apr 12 12:29 libLLVM.so
-rwxr-xr-x 1 david david  1667769 Apr 12 12:29 llvm-rs-cc
-rwxr-xr-x 1 david david  1919720 Apr 12 12:29 mipsel-linux-android-ld
-rw-r--r-- 1 david david    10800 Apr 12 12:29 NOTICE.txt
drwxr-xr-x 5 david david     4096 Apr 12 12:29 renderscript
-rw-r--r-- 1 david david    16649 Apr 12 12:29 source.properties

为什么说gradle the aapt不是文件?什么错了?

1 个答案:

答案 0 :(得分:1)

这帮助了我link

sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1