错误:android-apt-compiler:无法运行程序“sdk_path / build-tools / 21.1.2 / aapt”:java.io.IOException:error = 13,权限被拒绝 [英] Error:android-apt-compiler: Cannot run program "sdk_path/build-tools/21.1.2/aapt": java.io.IOException: error=13, Permission denied
问题描述
我正在使用 Intellij IDEA 14.1.2 ,java版 1.6.0_45
和 OS Ubuntu 14.04 32位
,
执行期间显示此错误。
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.
错误:android-apt-compiler:不能运行程序
sdk_path / build-tools / 21.1.2 / aapt:java.io.IOException:error = 13,
Permission denied
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?
推荐答案
右键点击'aapt '文件,属性 - >权限并选中'允许将文件作为程序执行'。然后关上窗户。在我的情况下,在给了'aapt'文件的许可之后,我必须在同一目录中给'dx'和'zipalign'文件同样的权限(... / build-tools / 21.1.2 /)
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.
这篇关于错误:android-apt-compiler:无法运行程序“sdk_path / build-tools / 21.1.2 / aapt”:java.io.IOException:error = 13,权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!