I'm using Intellij IDEA 14.1.2, java version "1.6.0_45
" and OS Ubuntu 14.04 32bit
,
Showing this error during execution.
Error:android-apt-compiler: Cannot run program "sdk_path/build-tools/21.1.2/aapt": java.io.IOException: error=13, Permission denied
May I know you how can I solve this error?
right click on 'aapt' file , properties -> permissions and check 'Allow executing file as program'. then close the window. in my case,after giving permission for 'aapt' file, i had to give the same permission for 'dx' and 'zipalign' files in the same directory (.../build-tools/21.1.2/)
See if this solves your problem.
来源:https://stackoverflow.com/questions/30082857/errorandroid-apt-compiler-cannot-run-program-sdk-path-build-tools-21-1-2-aapt