android-apt-compiler: Cannot run program "D:\android-sdk\platform-tools\aapt

时间:2022-08-11 02:20:20

android-apt-compiler: Cannot run program "D:\android-sdk\platform-tools\aapt

装上IntelliJ IDEA 12.1.3后,编译Android工程,发现老是报如上错误,有人说是ant配置文件SDK什么路径不对,但我这里是对的,后来发现API17把原来plateform-tools下的aapt.exe和lib文件夹都放到了/build-tools/17.0.0/下去了,于是将aapt.exe, lib文件夹分别拷贝到platform-tools文件夹,OK!

 

Linux下的做法:

ln -s ../build-tools/17.0.0/aapt platform-tools/aapt

ln -s ../build-tools/17.0.0/lib platform-tools/lib

 

IntelliJ IDEA官方论坛给出的解决方案:

http://devnet.jetbrains.com/message/5487828