question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Moving to JDK 11?

See original GitHub issue

Summary: I see this warning in the console, so maybe we should consider moving to JDK 11+

warning: Current JDK version 1.8.0_312-b07 has a bug (https://bugs.openjdk.java.net/browse/JDK-8007720) that prevents Room from being incremental. Consider using JDK 11+ or the embedded JDK shipped with Android Studio 3.5+.

Would you like to work on the issue? No

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pshcommented, Feb 23, 2022

I did a quick check of my machine -

$ ./gradlew --version

------------------------------------------------------------
Gradle 6.9
------------------------------------------------------------

Build time:   2021-05-07 07:28:53 UTC
Revision:     afe2e24ababc7b0213ccffff44970aa18035fc0e

Kotlin:       1.4.20
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          11.0.13 (Amazon.com Inc. 11.0.13+8-LTS)
OS:           Mac OS X 12.2.1 x86_64

We declare version 1.5.20 of Kotlin for our code, and

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

Overall the project builds just fine for me, using Android Studio “BumbleBee”, running on JDK 11 isnt a problem. We could stand to update the gradle version and the Kotlin version though, and spend some effort in moving the codebase off Java and over to Kotlin. 😃

1reaction
misaochancommented, Feb 4, 2022

Good idea. I would request that the person submitting the PR also do a brief test of the app’s functionality and report on that in the PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Oracle JDK Migration Guide - Java
The purpose of this guide is to help you identify potential issues and give you suggestions on how to proceed as you migrate...
Read more >
Migrating to Java 11 from Java 8. Overview - Medium
Migrating to Java 11 from Java 8 · 1. Java Version · 2. Maven Compiler · 3. Spring Boot · 4. Docker ·...
Read more >
Transition from Java 8 to Java 11 - Azure - Microsoft Learn
Once the application runs on Java 11, consider moving libraries off the class-path and onto the module-path. Look for updated versions of the ......
Read more >
Steps to migrate from jdk-8 to adoptopenjdk-11 - github:gist
dineshbhagat/Steps to migrate from jdk-8 to openJDK-11.md · Upgrade build tools · Add missing Java dependencies in jdk11 · Remove findbug and add...
Read more >
LinkedIn's journey to Java 11
The actual migration was planned for an additional three quarters in which 500 libraries and about 1,100 applications would be migrated to Java...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found