Android的工作室不编译 [英] Android Studio not compiling

查看:160
本文介绍了Android的工作室不编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我具有带我从昨天早上开始,但没有成功弄明白一个问题。我真的绝望了,现在解决这个问题。

在日志控制台,在Android的Studio窗口的底部我得到这个错误:

 错误:摇篮:执行失败的任务:MyApplication2:mergeDebugResources。
         > java.io.IOException异常:不能运行程序/home/user/.local/android-studio/sdk/build-tools/android-4.2.2/aapt:错误= 2,没有这样的文件或目录

可是偏偏该文件是存在的。我做了一些研究,但没有成功。我是在这个这么多时间。我不知道为什么这应该是错误的。我在Linux上。

请帮我解决这个问题。

编辑:

在处理IDE完全相同的错误发生:

 构建失败
在执行这条线出现以下错误:/home/user/adt-bundle-linux-x86_64-20130729/sdk/tool​​s/ant/build.xml:649:
/home/user/adt-bundle-linux-x86_64-20130729/sdk/tool​​s/ant/build.xml:690:执行失败:java.io.IOException异常:不能运行程序/ home / user中/ ADT-捆绑Linux的-x86_64-20130729 / SDK /编译工具/ 18.0.1 / AAPT(目录/ tmp目录/ android8933435574063638939sketch):java.io.IOException异常:错误= 2,没有这样的文件或目录


解决方案

尝试安装以下内容:
sudo易于得到--no安装,建议安装IA32-库-multiarch

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

解决方案

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

这篇关于Android的工作室不编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆