当我尝试在UBUNTU 14.04上的Android Studio中使用Gradle进行编译时始终出现此错误 [英] Keep getting this error when I'm trying to compile with Gradle in Android Studio on UBUNTU 14.04

查看:80
本文介绍了当我尝试在UBUNTU 14.04上的Android Studio中使用Gradle进行编译时始终出现此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Error:org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/home/codywang/Documents/android-sdk-linux/build-tools/21.1.2/aapt'' :app:mergeDebugResources FAILED Error:Execution failed for task ':app:mergeDebugResources'.
Error: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/home/codywang/Documents/android-sdk-linux/build-tools/21.1.2/aapt''

当我尝试从Android Studio 1.1的Ubuntu 14.04中进行编译时,我一直收到这些错误.

I kept getting these errors when I'm trying to compile in Ubuntu 14.04 from Android Studio 1.1.

我已经在互联网上进行了一些研究,发现这可能是由于我的64位Ubuntu与32位android-sdk不兼容

I have done some research on the internet, and found out this might caused by my 64-bit Ubuntu which incompatible with the 32-bit android-sdk

所以我尝试了以下命令来安装i386软件包.

So I tried the following commands in order to install i386 packages.

$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install libc6:i386 libstdc++6:i386 lib32z1 libsdl1.2debian:i386

我已经安装了所有这些库,但是仍然遇到相同的错误. 关于如何解决此问题的任何想法?谢谢!

I've installed all of those libs, but still got the same error. Any ideas of how to solve this problem? Thanks!

推荐答案

将目录更改为 build-tools/21.1.2/目录并运行以下命令

change directorty to build-tools/21.1.2/ directory and run following command

chmod +x aidl dexdump bcc_compat dx llvm-rs-cc mainDexClasses zipalign arm-linux-androideabi-ld i686-linux-android-ld mipsel-linux-android-ld

这篇关于当我尝试在UBUNTU 14.04上的Android Studio中使用Gradle进行编译时始终出现此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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