Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

superclass access check failed

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.

like image 464
Muzammil Hussain Avatar asked Jun 01 '26 03:06

Muzammil Hussain


1 Answers

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):

  1. go to console in Android Studio and type: ./gradlew --stop
  2. if you still get the error, restart your computer (unbelievably this worked for some users)
  3. last option and what worked for me, update android studio. Go to Help -> check for updates. When updating, these window was shown:

conflicts found in the installation area

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.

like image 126
Daniel Cettour Avatar answered Jun 02 '26 19:06

Daniel Cettour