Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle Build Error : aidl.exe finished with non-zero exit value 1

this is my build.gradle file:

click to see screenshot

and my error :

Error:Execution failed for task ':app:compileDebugAidl'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\dev\sdk\build-tools\22.0.1\aidl.exe'' finished with non-zero exit value 1

how can I fix this error?

like image 307
a ramazani Avatar asked Nov 30 '15 18:11

a ramazani


2 Answers

Run Gradle with debug enabled (e.g. gradlew build --debug) to see the actual reason.

Common issues include:

  • Package doesn't match manifest
  • Multiple methods with the same method name (aidl doesn't support this as far as I can tell)
like image 70
Philip Whitehouse Avatar answered Oct 17 '22 01:10

Philip Whitehouse


After a lot of search I found solution

Because of we copied IInAppBillingService.aidl file from trivial drive project into our project.

The package name of that file is not changed according to our project so we need to manually change the package name of IInAppBillingService.aidl file which is written at the first line of the file.

This solve the problem of **aidl.exe finished with non-zero exit value 1 **

like image 35
Dheeraj Jaiswal Avatar answered Oct 17 '22 00:10

Dheeraj Jaiswal