小编sea*_*mes的帖子

Android Studio:Gradle构建失败 - 任务'执行失败':compileDebugAidl'

在Android Studio(I/O预览)AI - 130.677228中使用gradle更改源和构建后,构建失败并显示以下错误:

Gradle: 
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugAidl'.
> No signature of method: com.android.ide.common.internal.WaitableExecutor.waitForTasks() is applicable for argument types: () values: []
  Possible solutions: waitForAllTasks()
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
Run Code Online (Sandbox Code Playgroud)

第二次运行构建时,构建将成功.

使用版本1.6的gradle包装器

这真的很糟糕,因为它在第一次失败后进行了长时间的构建(非增量).

有没有办法不发生这种失败?

编辑以包含build.gradle

buildscript {

    repositories {
        mavenCentral()
    }
    dependencies { …
Run Code Online (Sandbox Code Playgroud)

android gradle android-studio

36
推荐指数
2
解决办法
7万
查看次数

标签 统计

android ×1

android-studio ×1

gradle ×1