如何修复Android Studio错误“ compileDebugAidl”

时间:2018-07-22 19:08:56

标签: java android aidl

我正在尝试在android studio中使用AIDL,但JAVA类无法识别AIDL(它说“无法解析”),我甚至对AIDL的导入行进行了硬编码,但它仍然无法识别AIDL,我试图多次清理和重建项目,但是它不起作用,它只是给我一个“ compileDebugAidl”错误。

这是我刚开始遇到的错误:

Process 'command 'C:\Users\User\AppData\Local\Android\Sdk\build-tools\27.0.3\aidl.exe'' finished with non-zero exit value 1

在构建面板中选择了最新的行之后,这就是它所显示的错误:

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugAidl'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
at

我已经在Google,YouTube和此处搜索了超过3天的解决方案,但没有任何帮助和最新信息。

在此问题上,我希望获得一些帮助,谢谢:)

0 个答案:

没有答案