82769

Android Studio 2.0 - Error:Execution failed for task app:compileDebugAidl

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.

Recommend

  • Error:Execution failed for task ':app:processDebugResources'.
  • android studio java Error:Execution failed for task
  • ProcessReleaseResources
  • Error:Execution failed for task ':app:dexDebug'. > ProcessException: or 'VirtualMa
  • aapt.exe'' finished with non-zero exit value 1
  • Undefined references when compiling gSOAP client
  • Android app gives error “BatteryStatsImpl: reading network stats”
  • AndEngine Applying Transparancy to AndEngine View
  • Automatically associate new Sonar project with custom quality profile and quality gate
  • Jetty 9 HashLoginService
  • How can I sort a a table with VBA with given text condition?
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • Problem deserializing objects from cache on MyBatis 3/Java
  • Installing Apache MyFaces 2 on WildFly 8.2.0
  • why do I get the error when installing the gem 'pg'? [duplicate]
  • Read a local file using javascript
  • ImageMagick, replace semi-transparent white with opaque white
  • SignalR .NET Client Invoke throws an exception
  • Cannot connect to cassandra from Spark
  • Display issues when we change from one jquery mobile page to another in firefox
  • Master page gives error
  • Cross-Platform Protobuf Serialization
  • Join two tables and save into third-sql
  • How to model a transition system with SPIN
  • ORA-29908: missing primary invocation for ancillary operator
  • Alternatives to the OPTIONAL fallback SPARQL pattern?
  • Google cloud sdk not working when python points python3
  • Python - Map / Reduce - How do I read JSON specific field in using DISCO count words example
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • How to format a variable of double type
  • Understanding cpu registers
  • coudnt use logback because of log4j
  • How do I configure my settings file to work with unit tests?
  • JaxB to read class hierarchy
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Converting MP3 duration time
  • Conditional In-Line CSS for IE and Others?
  • How do I use LINQ to get all the Items that have a particular SubItem?