
Question:
after upgrading my Android Studio 1.5 to 2.0 and my Android SDK Tools to 25.1.1 and Android SDK Build-tools 23.0.3 and gradle plugin to version 2.0.0 i get this error :
Error:Execution failed for task ':app:compileDebugAidl'.
> java.lang.RuntimeException: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/home/rasool/android/adt.../sdk/build-tools/23.0.3/aidl''
<a href="https://i.stack.imgur.com/EthFD.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/EthFD.png" data-original="https://i.stack.imgur.com/EthFD.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>
<a href="https://i.stack.imgur.com/kQ0Al.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/kQ0Al.png" data-original="https://i.stack.imgur.com/kQ0Al.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>
<a href="https://i.stack.imgur.com/m2LgH.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/m2LgH.png" data-original="https://i.stack.imgur.com/m2LgH.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>
Answer1:the problem was that iam running a 64-bit version of linux and changed my OS recently and i forgot to install necessary 32-bit libraries.
in Ubuntu :
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
in Fedora :
sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
if you get this error in Ubuntu :
E: Unable to locate package lib32bz2-1.0
E: Couldn't find any package by glob 'lib32bz2-1.0'
E: Couldn't find any package by regex 'lib32bz2-1.0'
you can skip this library and use this command :
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
Answer2:Try Build -> Clean Project
Sometimes Gradle builds will fail due to duplicate build files in the project.