Error:android-apt-compiler: Cannot run program “sdk_path/build-tools/21.1.2/aapt”: java.io.IOException: error=13, Permission denied

好久不见. 提交于 2019-12-23 03:06:40

问题


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?


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!