Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declaring custom 'clean' task when using the standard Gradle lifecycle plugins is not allowed.(gradle3.0) #16

Open
jinzw1993 opened this issue Aug 24, 2016 · 1 comment

Comments

@jinzw1993
Copy link

build.gradle 文件内容:
`// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'android'
apply plugin: 'com.droidtitan.lintcleaner'
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.droidtitan:lint-cleaner-plugin:0.3.0'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {
repositories {
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
`
输入命令:
gradle lintClean
报错信息:
Declaring custom 'clean' task when using the standard Gradle lifecycle plugins is not allowed.

@sysamigobhushan
Copy link

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.android.tools.build:gradle:1.1.3'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}

dependencies {
}
apply plugin: 'idea'
apply plugin: 'java'
//////////////////////////////////////////////
If issue Declaring custom 'clean' task when using the standard Gradle lifecycle plugins is not allowed.
write above code on your build.gridle(Project)file
for android version-2.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants