Cannot run program "aapt": error=13, Permission denied

原因:

04-19 12:35:56 I/YPYPFENRUW8SFIRG: -----------------------------------------

04-19 12:35:56 I/YPYPFENRUW8SFIRG: Test package armeabi-v7a android.app started
04-19 12:35:56 I/YPYPFENRUW8SFIRG: -----------------------------------------
04-19 12:35:59 E/RunUtil: Exception occurred when executing runnable
04-19 12:35:59 E/RunUtil: Cannot run program "aapt": error=13, Permission denied
java.io.IOException: Cannot run program "aapt": error=13, Permission denied
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047)
    at com.android.tradefed.util.RunUtil$RunnableResult.run(RunUtil.java:421)
    at com.android.tradefed.util.RunUtil$RunnableNotifier.run(RunUtil.java:378)
Caused by: java.io.IOException: error=13, Permission denied
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.(UNIXProcess.java:187)
    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)

解决方法:
在本地/opt/下搜索 aapt
sudo chmod 777 aapt

你可能感兴趣的:(run,program,aapt,【Android编程】)