android-apt-compiler: Cannot run program "/home/jon/Programs/android-sdk-linux/platform-tools/aapt": java.io.IOException: error=2, No such file or directory在互联网上搜索了几个小时都没有帮助.Several hours of scouring the internet hasn't helped.顺便在终端运行locate aapt,发现aapt位于/home/jon/Programs/android-sdk-linux/build-tools/17.0.0/aaptBy the way, I ran locate aapt in the terminal and found that aapt is located at /home/jon/Programs/android-sdk-linux/build-tools/17.0.0/aapt推荐答案似乎 r22 SDK 版本的最新更新将 aapt 和 lib jar 从 platform-tools 移动到 build-tools 目录.在我们等待 JetBrains 发布更新时,这里有一个使用几个符号链接的快速修复:It appears that the latest update to the r22 SDK release moved aapt and the lib jar from the platform-tools to the build-tools directory. While we wait for JetBrains to release an update, here's a quick fix using a couple of symbolic links:从您的 AndroidSDK/platform-tools 目录,运行以下命令:From your AndroidSDK/platform-tools directory, run the following:ln -s ../build-tools/17.0.0/aapt aaptln -s ../build-tools/17.0.0/lib lib...并且 IntelliJ 应该能够正常编译....and IntelliJ should be able to compile as normal. 这篇关于Android Hello-World 编译错误:Intellij 找不到 aapt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-30 01:04
查看更多