Repository navigation
build: Compile the SDK for Java 11 - #6459
Open
runningcode wants to merge 6 commits into
Open
runningcode wants to merge 6 commits into
runningcode wants to merge 6 commits into
Conversation
AGP 9 defaults compileOptions to Java 11. The published Android libraries now emit Java 11 bytecode for both Java and Kotlin instead of Java 8. The JVM modules, sentry included, keep publishing Java 8 bytecode so that Java 8 backends can still use them. Fixes JAVA-660 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
📲 Install BuildsAndroid
|
Extend the Java 11 target to the JVM modules, so every published module now emits Java 11 bytecode and the SDK no longer runs on Java 8. Modules that already targeted Java 17 are unchanged. The samples that pinned Java 8 move to Java 11 with the SDK. Refs JAVA-660 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Java 11 as the minimum, the Java 8 signature only blocked APIs the SDK may now use. javac's release flag and Kotlin's -Xjdk-release already limit main code to the Java 11 API, so the JVM-only modules no longer apply animal sniffer. The modules that Android apps also use keep checking against the Android API 21 signature. Refs JAVA-660 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
runningcode
marked this pull request as ready for review
November 4, 2026 15:33
runningcode
requested review from
0xadam-brown,
adinauer,
markushi and
romtsn
as code owners
November 4, 2026 15:33
This branch has not been deployed
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
This raises the min java needed to 11. (was 8 before). Java 8 is deprecated so its time to stop supporting it.
We also remove the java 8 api signature check and the animalsniffer from jvm only modules.
💡 Motivation and Context
v9 is a major release, so it's where we raise the minimum Java version from 8 to 11.
💚 How did you test it?
Tests pass
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
🤖 Generated with Claude Code