Oh, you’re right. I did not expect that, for an Android project. Thanks!
But then it is supposed to get the checkstyle.xml located in rootDir/config/checkstyle/checkstyle.xml, right? Because it doesn’t seem to apply anything in my case (I have indentations with 2, 3 and 4 spaces, and the checkstyle.xml says “2”).
Well, I am not sure it is actually right to add the java plugin to an android project. I could make checkstyle run, but without the gradle checkstyle plugin (i.e. by creating a task manually that is getting checkstyle from com.puppycrawl.tools:checkstyle:7.8.1).
It is still very unclear to me how to use checkstyle with Android correctly.