Open
Conversation
> Android Gradle plugin requires Java 11 to run. When using Java8, this error occurs. Java11 is mandatory, so change the config.
Got this build error > Task :app:kaptGenerateStubsFocusWebkitDebugKotlin FAILED > e: java.lang.IllegalAccessError: superclass access check failed: class org.jetbrains.kotlin.kapt3.base.javac.KaptJavaCompiler (in unnamed module @0x2d1fb0aa) > 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 @0x2d1fb0aa it seems upgradeing kotlin version fixes this issue.
after upgrading kotlin version, these errors are occuring. The commit does not change the behavior, just for passing build.
the id was removed in 11d8dea
de88e3d to
f258a6f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I was trying to build this app by Java 11, but got some errors. This PR fixes those errors I had got.
Out of scope
I wanted to use latest gradle and Android Studio, however it is hard to finish all migration in just one PR. There are some other tasks like to use Java 21, newer kotlin, new gradle...etc. But we better to do that gradually.