Skip to content

Use java11 to build app#137

Open
walkingice wants to merge 4 commits intomasterfrom
use_java11_to_build_app
Open

Use java11 to build app#137
walkingice wants to merge 4 commits intomasterfrom
use_java11_to_build_app

Conversation

@walkingice
Copy link
Member

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.

> 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
@walkingice walkingice force-pushed the use_java11_to_build_app branch from de88e3d to f258a6f Compare February 12, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants