Ubuntu Cannot run program "../SDK/build-tools/xxx/aapt": erro = 2 No such file or directory

64位ubuntu Android Studio  Gradle编译时出现如下报错:

java.io.IOException: Cannot run program "/home/king/tools/Android/SDK/build-tools/23.0.3/aapt": error=2, 没有那个文件或目录

解决办法:

在64位上需要安装几个32位的兼容库

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

 

 

转自:http://blog.csdn.net/zjclugger/article/details/51360216

posted @ 2017-02-13 14:36  biangbiang  阅读(595)  评论(0编辑  收藏  举报