android-apt-compiler: Cannot run program
程序员文章站
2022-03-17 16:24:34
...
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
装上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
推荐阅读
-
cannot be run because the QueueReader subsystem failed to load
-
ubuntu vps安装docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.问题解决
-
Cannot run program "/usr/local/android-sdk-linux/build-tools/23.0.2/aapt": error=2, No such file or
-
Pycharm:Error: Cannot run programError: Cannot run program......CreateProcesss error=2
-
cannot resolve method 'run(java.lang.class)
-
项目运行npm run dev浏览器始终报cannot get /
-
cannot be run because the QueueReader subsystem failed to load
-
解决idea 拉取代码出现的 “ Сannot Run Git Cannot identify version of git executable: no response“的问题
-
详解vuejs中执行npm run dev出现页面cannot GET/问题
-
ubuntu vps安装docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.问题解决