我尝试用android studio构建一个android应用程序。Gradle在我尝试构建时抛出了这个错误
渐变调用成功完成,10秒内出现1个错误
消息渐变构建窗口显示:
错误:任务执行失败":SlidingUpPanelLayout:processReleaseResources"。java.io.io异常:无法运行程序"/home/[…]/android studio/sdk/build-tools/19.0.2/aapt":错误=2,否这样的文件或目录
但是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的aapt不是一个文件?它怎么了?
这帮助我链接
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1