繁体   English   中英

当我在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

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中编译时,我不断收到这些错误。

我在互联网上做了一些研究,发现这可能是由我的64位Ubuntu引起的,它与32位android-sdk不兼容

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

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

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM