Repository navigation
build(android): Bump AGP to 9.5.1 - #6540
Merged
Merged
Conversation
Raise the default Android Gradle Plugin from 9.4.0 to 9.5.1, the latest stable release. The AGP matrix moves to 9.0.0/9.4.0/9.5.1, keeping the minimum supported version and the previous default, and the replay snapshot upload follows the new default. Lint 9.5 can't load the custom checks bundled with older androidx.lifecycle releases and reports ObsoleteLintCustomCheck, which warningsAsErrors fails on. Disable it in the affected modules; the skipped checks cover lifecycle APIs those modules don't call. Lint 9.5's new ThreadConstraint check flags ScreenshotUtils.takeScreenshot, which is safe to call from any thread because captureScreenshot posts the view draw to the UI thread. Suppress it there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
📲 Install BuildsAndroid
|
runningcode
marked this pull request as ready for review
November 10, 2026 14:31
runningcode
requested review from
0xadam-brown and
markushi
and removed request for
a team
November 10, 2026 14:31
romtsn
approved these changes
Nov 10, 2026
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
Bumps the default Android Gradle Plugin from
9.4.0to9.5.1, the latest stable release. It also bumps the matrix version so we now test 9.0, 9.4, and 9.5.1.Lint 9.5 reports two new findings:
ObsoleteLintCustomCheckin a few modules. The issue is that Lint 9.5 can't load the custom checks in thelint.jarthatandroidx.lifecyclebundles (seen with 2.3.1, 2.8.7 and 2.9.0), so it skips them and says so. We'll fix this in a follow up on the v9 branch once we merge there: https://linear.app/getsentry/issue/JAVA-832/bump-androidxlifecycle-to-2100-and-re-enable-obsoletelintcustomcheckThreadConstraint, flagsScreenshotUtils.takeScreenshot. It infers a UI-thread requirement from theViewcalls incaptureScreenshot, and that conflicts withBitmap.compress's@WorkerThread. The method is safe to call from any thread becausecaptureScreenshotposts the view draw to the UI thread when it isn't already on it, so the check is suppressed on that method only. Hybrid SDKs call this method; its behavior doesn't change.This replaces the Dependabot bump #6505, which only touched the version catalog and fails on these lint errors.
💡 Motivation and Context
Keep the toolchain on the current stable AGP.
💚 How did you test it?
Passes CI
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
ObsoleteLintCustomCheckdisables this PR adds.#skip-changelog
🤖 Generated with Claude Code