在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)