---
title: "android-apt-compiler: Cannot run program"
author: "osacar"
date: "2013-06-17T18:23:20Z"
tags: []
categories: ["移动开发"]
slug: "android-apt-compiler-cannot-run-program"
draft: false
lastmod: "2013-06-17T18:23:20Z"
id: 1888358
url: "https://osacar.iteye.com/blog/1888358"
---

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