Gradle Build错误:aidl.exe完成,退出值非零1 [英] Gradle Build Error : aidl.exe finished with non-zero exit value 1

查看:121
本文介绍了Gradle Build错误:aidl.exe完成,退出值非零1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的build.gradle文件:

this is my build.gradle file:

单击以查看屏幕截图

和我的错误:

错误:任务':app:compileDebugAidl'的执行失败. com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'D'\ dev \ sdk \ build-tools \ 22.0.1 \ aidl.exe命令以非零退出值1

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

如何解决此错误?

推荐答案

在启用调试的情况下运行Gradle(例如gradlew build --debug)以查看实际原因.

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

常见问题包括:

  • 包裹与舱单不符
  • 具有相同方法名称的多个方法(据我所知,aidl不支持此方法)

这篇关于Gradle Build错误:aidl.exe完成,退出值非零1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆