簡體   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