I am facing this issue
Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x65e8e2f6) cannot access class com.sun.tools.javac.tree.TreeScanner (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x65e8e2f6
I added the following to our
gradle.properties
file and it fixed the problem. (We use Butterknife and Realm, and needed the below three packages added. (You might get away without “javac.code” for just Butterknife))