Android Studio not compiling

2019-08-06 05:20发布

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条回答
Viruses.
2楼-- · 2019-08-06 05:45

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

查看更多
登录 后发表回答