【安卓】gradle错误。

 

错误:

Error:(28, 0) Cause: startup failed: build file 'build.gradle': 28: Ambiguous expression could be a parameterless closure expression, an isolated open code block, or it may continue a previous statement; solution: Add an explicit parameter list, e.g. {it -> ...}, or force it to be treated as an open block by giving it a label, e.g. L:{...}, and also either remove the previous newline, or add an explicit semicolon ';' 

 

 

解决方法:

 

task clean(type: Delete)  \
{
    delete rootProject.buildDir
}

你可能感兴趣的:(安卓)