java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler (in unnamed module @0x603e2fc3) cannot access class com.sun.tools.javac.main.JavaCompiler (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.main to unnamed module @0x603e2fc3
I am facing this issue while compiling code with Iguana beta version.
I've read other posts and got it working, my conclusion is that there are some demons or background processes that are causing this conflict. This is what you can try one by one (assuming you've already tried project -> clean and project -> rebuild and invalidates caches and restart):
./gradlew --stop
Look at the first line that says that some conflicts were found. Obviously these are background threads that are locked or something, the solution already suggested (right column) is to kill all the processes, just click proceed at the bottom. Then, in my case the update completed successfully and everything worked fine. Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With