Checkstyle, Unable to create Root Module

This happened to me when I updated Android Gradle Plugin to 3.3.0

Please run this:

./gradlew checkstyle --stacktrace

Probably you will need to check your checkstyle.xml config file.

I needed to move those two tags:

 <module name="SuppressionCommentFilter"/>

        <!--Enable usage SUPPRESS CHECKSTYLE comment-->
        <module name="SuppressWithNearbyCommentFilter">
            <property name="commentFormat" value="CHECKSTYLE IGNORE"/>
            <property name="checkFormat" value=".*"/>
            <property name="influenceFormat" value="0"/>
        </module>

inside

<module name="TreeWalker"> 

tag

Also I needed to remove:

<module name="SuppressionCommentFilter"/>

From the release notes of version 8.24:

Change LineLength Check parent from TreeWalker to Checker.

So I had to move

<module name="LineLength">

from inside

<module name="TreeWalker">

to inside

<module name="Checker">