简体   繁体   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''

I kept getting these errors when I'm trying to compile in Ubuntu 14.04 from Android Studio 1.1. 当我尝试从Android Studio 1.1在Ubuntu 14.04中编译时,我不断收到这些错误。

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

So I tried the following commands in order to install i386 packages. 所以我尝试了以下命令来安装i386软件包。

$ 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! 谢谢!

将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.

相关问题 启动AVD时Ubuntu 14.04 Android Studio Panic错误 - Ubuntu 14.04 Android Studio Panic error when starting avd 我正在尝试在Windows上的android studio中运行一个基本的Android-NDK项目,但不断收到未知文件错误 - I'm trying to run a basic Android-NDK project in android studio on windows but keep getting unknown file error Ubuntu 14.04 LTS中的Android Studio 2.2出现错误:“Gradle sync failed:原因:错误= 13,权限被拒绝” - Android Studio 2.2 in Ubuntu 14.04 LTS gives Error : “Gradle sync failed: Cause: error=13, Permission denied” 尝试接受 Android Studio 许可证时,我不断收到此错误“java.lang.NoClassDefFoundError” - When trying to accept Android Studio licenses, I keep getting this error “java.lang.NoClassDefFoundError” 如何使用Ubuntu 14.04在Android Studio中以离线模式安装Gradle? - How to install Gradle with offline mode for Android studio using Ubuntu 14.04? 尝试在Android Studio中使用Gradle进行构建时出错 - Error when trying to build with Gradle in Android Studio Android Studio编译错误(Gradle) - Android Studio compile error (Gradle) 升级了Android Studio,现在我收到与项目gradle文件相关的消息“找不到属性'compile'...” - Upgraded Android Studio, now I'm getting the message “Could not find property 'compile'…” related to my project gradle file Android Studio 我不断收到 Gradle 错误“该进程无法访问该文件,因为它正被另一个进程使用” - Android Studio I keep getting Gradle error "The process cannot access the file because it is being used by another process" 为什么在尝试使用 android studio java web 服务器连接到我的 PC 上的服务器时出现错误? - Why when trying to connect using android studio java web server to my server on the pc i'm getting error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM