google-developer-training/android-basics-kotlin-sql-basics-app

Android Basics: SQL Basics

Rilotia opened this issue · 0 comments

failed
:app:kaptGenerateStubsDebugKotlin
java.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x6e6f3785) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x6e6f3785
Internal compiler error. See log for more detailsx

My understanding of Android, Kotlin, and Gradle is beginner at best. So I have no idea what's really going on but I was able to fix this issue and be able to successfully build and run the sql app by changing the 'ext.kotlin_version' to 1.7.0 in the build.gradle project file. And change the 'room_version' to 2.4.3 in the build.gradle module file.

Godbless.