Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Findbugs in Gradle build fails after upgrading to Android Gradle Plugin 3.2

Error message:

No files to be analyzed

My findbugs configuration is like:

tasks.create([ "type" : FindBugs, "dependsOn" : "assemble", "group": "verification", "name": "findbugs"]) {
    classes = files("$projectDir.absolutePath/build/intermediates/classes")

    source = fileTree('src/main/java')
    classpath = files()
}
like image 861
Teng-pao Yu Avatar asked Dec 06 '22 11:12

Teng-pao Yu


1 Answers

Seems like the class path have changed in AGP 3.2 from build/intermediates/classes to build/intermediates/javac.

like image 78
Teng-pao Yu Avatar answered Dec 10 '22 11:12

Teng-pao Yu