Android Studio not compiling

你离开我真会死。 提交于 2019-12-11 07:46:50

问题


I'm having an issue that's taking me since yesterday morning to figure it out with no success. I'm really desperate right now to solve this.

In the log console, at the bottom of the Android-Studio window I get this error:

Error: Gradle: Execution failed for task':MyApplication2:mergeDebugResources'.
         >java.io.IOException: Cannot run program "/home/user/.local/android-studio/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory

But happens that the file is there. I've done some research with no success. I'm taking so much time on this. I don't know why this should be wrong. I'm on Linux.

Please help me resolving this issue.

EDIT:

On Processing IDE the exact same error happens:

BUILD FAILED
/home/user/adt-bundle-linux-x86_64-20130729/sdk/tools/ant/build.xml:649: The following error occurred while executing this line:
/home/user/adt-bundle-linux-x86_64-20130729/sdk/tools/ant/build.xml:690: Execute failed: java.io.IOException: Cannot run program "/home/user/adt-bundle-linux-x86_64-20130729/sdk/build-tools/18.0.1/aapt" (in directory "/tmp/android8933435574063638939sketch"): java.io.IOException: error=2, No such file or directory

回答1:


Try to install the following: sudo apt-get --no-install-recommends install ia32-libs-multiarch



来源:https://stackoverflow.com/questions/18255594/android-studio-not-compiling

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