I just found the solution of my problem! yey 😊 but it took me a week to solve this problem here is my error message :-
superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler (in unnamed module @0x131f42e1) 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 @0x131f42e1
I was like why is this happening all of sudden but after a freakking week 😑 I found out that android team abandoned the kapt
and want us to migrate to the ksp
no matter what happen to your projects 😪. I was like really ? And this all happens after I updated my android studio to Ladybug | 2024.2.1 .
So just migrate to the Ksp and enjoy the life! Here is the link for the migration. Thank you.