Title: Bump androidx.lifecycle to 2.10.0 and re-enable ObsoleteLintCustomCheck · Issue #6541 · getsentry/sentry-java · GitHub
Open Graph Title: Bump androidx.lifecycle to 2.10.0 and re-enable ObsoleteLintCustomCheck · Issue #6541 · getsentry/sentry-java
X Title: Bump androidx.lifecycle to 2.10.0 and re-enable ObsoleteLintCustomCheck · Issue #6541 · getsentry/sentry-java
Description: Lint 9.5 (AGP 9.5.1) can't load the custom lint checks that androidx.lifecycle bundles before 2.10.0. It reports ObsoleteLintCustomCheck, which fails our warningsAsErrors builds. #6540 disables that check in five modules, because lifecyc...
Open Graph Description: Lint 9.5 (AGP 9.5.1) can't load the custom lint checks that androidx.lifecycle bundles before 2.10.0. It reports ObsoleteLintCustomCheck, which fails our warningsAsErrors builds. #6540 disables tha...
X Description: Lint 9.5 (AGP 9.5.1) can't load the custom lint checks that androidx.lifecycle bundles before 2.10.0. It reports ObsoleteLintCustomCheck, which fails our warningsAsErrors builds. #6540 disables...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/6541
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bump androidx.lifecycle to 2.10.0 and re-enable ObsoleteLintCustomCheck","articleBody":"Lint 9.5 (AGP 9.5.1) can't load the custom lint checks that androidx.lifecycle bundles before 2.10.0. It reports `ObsoleteLintCustomCheck`, which fails our `warningsAsErrors` builds. getsentry/sentry-java#6540 disables that check in five modules, because lifecycle 2.10.0 needs minSdk 23 and main is still on minSdk 21.\n\nThe 9.x.x branch is on minSdk 24 since getsentry/sentry-java#6518, so the minSdk blocker is gone there.\n\n## What to do\n\nOnce #6540 reaches 9.x.x:\n\n1. Resolve androidx.lifecycle 2.10.0 or newer in the affected modules.\n2. Remove `disable += \"ObsoleteLintCustomCheck\"` and its comment from:\n * `sentry-android-fragment`\n * `sentry-android-navigation`\n * `sentry-compose`\n * `sentry-android-replay`\n * `sentry-uitest-android`\n3. Run lint in the root build and in the `sentry-android-integration-tests` build.\n\n## Open question\n\nThe SDK modules get lifecycle only through `compileOnly` dependencies that are pinned to the oldest versions we support. For example, `fragment-ktx` 1.3.5 pulls lifecycle 2.3.1. Getting lifecycle to 2.10.0 there means compiling against newer AndroidX versions, either by raising those minimum versions or by forcing lifecycle alone. Decide which minimum versions v9 raises before doing this. The uitest app doesn't have this concern.\n\n\u003cdetails>\u003csummary>Agent notes\u003c/summary>\n\n* Verified on 2026-11-10. The `lint.jar` in `lifecycle-runtime-android` 2.9.4 calls `KtLightModifierList.getKotlinOrigin()`, which lint 9.5 removed. The 2.10.0, 2.11.0 and 2.12.0-alpha05 jars don't call it.\n* Forcing `lifecycle-runtime`, `lifecycle-runtime-android` and `lifecycle-common` to 2.10.0 in `sentry-android-navigation`, with the check re-enabled, gave a clean `lintRelease`: [https://gradle.com/s/e3ppfr2wjiynm](\u003chttps://gradle.com/s/e3ppfr2wjiynm>)\n* Lifecycle versions resolved on main: fragment 2.3.1 (from `fragment-ktx` 1.3.5), navigation and compose 2.9.0, replay 2.8.7.\n* The lifecycle 2.10.0 AAR declares `minSdkVersion=\"23\"`.\n\n\u003c/details>","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-11-10T14:30:36Z","url":"https://github.com/getsentry/sentry-java/issues/6541"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2f301c00-6431-2efe-124c-244c4b929251 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 99FA:1D9E7F:4340FE:5CC004:6B04515B |
| html-safe-nonce | 9015ad4ae038c51420be662dfa4a77e1912f67534322e60d7413cabe95f67002 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUZBOjFEOUU3Rjo0MzQwRkU6NUNDMDA0OjZCMDQ1MTVCIiwidmlzaXRvcl9pZCI6IjEzNDUxODYwNTEzOTQzMTc3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 380b3ae3a6f2037bd84ae9392652a126bec4066f5c8d494db367cb12e8b15be9 |
| hovercard-subject-tag | issue:6308916104 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/6541/issue_layout |
| twitter:image | https://opengraph.githubassets.com/255dbebede901795397869a42fafd12972398eec1005e6d2f5f2e59cddcb3bcb/getsentry/sentry-java/issues/6541 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/255dbebede901795397869a42fafd12972398eec1005e6d2f5f2e59cddcb3bcb/getsentry/sentry-java/issues/6541 |
| og:image:alt | Lint 9.5 (AGP 9.5.1) can't load the custom lint checks that androidx.lifecycle bundles before 2.10.0. It reports ObsoleteLintCustomCheck, which fails our warningsAsErrors builds. #6540 disables tha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | runningcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width