2015-04-02 89 views
5
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时,我不断收到这些错误。当我试图用UBUNTU上的Android Studio中的Gradle进行编译时,出现此错误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 

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

+1

如果你有这个文件适当的权限你检查? /home/codywang/Documents/android-sdk-linux/build-tools/21.1.2/aapt – mushfek0001 2015-04-02 13:49:01

回答

3

变化directorty到构建工具/ 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 
+0

非常好的答案... – 2016-01-27 10:03:26

相关问题