活到老学到老  

记录遇到问题的点点滴滴。

aapt: error=2, No such file or directory解决

7年前发布  · 2727 次阅读
  aapt 

java.io.IOException: Cannot run program "/usr/local/src/android-sdk/build-tools/23.0.1/aapt": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:167)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:118)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 4 more
Thread(png-cruncher_5) has a null payload

 

Ubuntu:

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

Centos:

sudo yum install zlib.i686 libstdc++.i686