# How to Upgrade Jetpack Compose Without Breaking an Android App

A release-by-release checklist for Compose BOM and Kotlin alignment, API removals, UI behavior, tests, and performance comparisons.

Canonical URL: https://threadeast.xyz/guides/upgrade-jetpack-compose-safely
Published: 2026-11-25T16:00:00.000Z (day precision)
Content modified: 2026-11-25T16:00:00.000Z (day precision)
Language: en
Content version: 3b5718bdf8f36e743c4ee33a2520b9f90ea8dea626306e8e19eb9f5ad3f27b5e
Review timestamp is not separately recorded for this editorial document.
Observation timestamp is not separately recorded for this editorial document.

## Record the app's actual dependency graph

Before changing versions, record the Gradle wrapper, Android Gradle Plugin, Kotlin plugin, Compose compiler plugin, compileSdk, and the Compose libraries resolved by the app. Version catalogs and build files show what you requested; Gradle's resolved graph shows what the build actually selected, including transitive dependencies and constraints.

Run ./gradlew :app:dependencyInsight --dependency androidx.compose.runtime --configuration debugRuntimeClasspath and save the output with the change. Repeat for a library involved in a suspected conflict. If the app has flavors or multiple modules, inspect the configuration that the shipping variant really uses. A clean dependency graph is a baseline for comparison, not proof that the app is compatible.

## Change the Compose BOM and toolchain deliberately

The Compose BOM aligns versions for the Compose libraries it covers; it does not add those libraries to your app and does not manage the Kotlin, Gradle, Android Gradle Plugin, or Compose compiler plugin versions. Keep the BOM declaration in one place, such as a version catalog or a shared platform dependency, and avoid adding individual versions to BOM-managed artifacts unless release documentation calls for an exception.

For a concrete example, Android's November 2026 release post marks Jetpack Compose 1.13 as stable, recommends Compose BOM 2026.11.01, and lists Kotlin 2.2 or newer and compileSdk 37.1 as requirements. Check that your Gradle and Android build tools can support those requirements before changing the BOM. If they cannot, update the toolchain as a separate reviewed change or stay on a compatible Compose release; a version catalog edit cannot resolve a compiler or SDK mismatch.

After the change, compare dependencyInsight output with the baseline. Confirm that the intended runtime, UI, foundation, and Material artifacts resolved, and look for an older direct dependency pin that kept one module behind. Do not infer that every library bearing a Compose name is governed by the BOM.

## Turn release notes into a code search list

Search the official release notes for deprecated APIs, removed implementations, default behavior changes, and relocated parameters. In Compose 1.13, Android says Modifier.onFocusedBoundsChanged was deprecated in 1.12 and its implementation was removed in 1.13, so existing uses no longer report bounds. The notes direct custom containers toward querying focused bounds through the focus target node, and toward onFocusChanged plus BringIntoViewRequester for focus-driven scrolling.

The same release changes clickable elements to play the standard Android interaction sound according to the user's system setting. Search for custom click-sound code so a migrated screen does not play the sound twice. LazyLayoutCacheWindow configuration also moved from lazy-list state objects to layout composables, and a larger cache window can retain more off-screen content. Review memory use as well as scroll behavior.

New APIs are optional migration work unless your app needs them. CapturedAnimatedVisibility, for example, animates a snapshot of the last frame after removing content. That can help when the backing item is cleared immediately, but the snapshot is not a live interactive subtree. Test it only on a screen whose exit behavior benefits from that trade-off.

## Use one migration branch and fix compiler evidence first

Apply the BOM and required toolchain update in a branch that can be reverted as a unit. Build the affected modules and address errors and deprecation warnings before making broad UI rewrites. An upgrade warning is evidence to inspect; it is not by itself a reason to migrate every field, layout, or animation in the same change.

The Compose 1.13 release notes deprecate value-based BasicTextField APIs and recommend state-based text fields for new migration work. Material 3's value-based TextField overloads are described separately, so check the precise API and library version your app uses instead of treating all text fields as identically removed. Preserve input, selection, validation, save-and-restore, and accessibility behavior while moving one component at a time.

## Test the behaviors most likely to change

A successful compile checks API compatibility, not the experience people use. Run unit tests and a debug assembly for the affected module, then run connected UI tests on the Android versions and form factors that matter to the app. A common baseline is ./gradlew :app:testDebugUnitTest :app:assembleDebug; run connected tests only when a configured device or emulator is available.

Add focused checks for text entry after rotation or process recreation, keyboard and focus traversal, custom containers that reveal focused items, click sounds, fast and reverse scrolling, nested View and Compose scrolling, and animations whose source item disappears. Include screenshots or semantic-tree checks for dense layouts and accessibility settings where they are part of the product's supported behavior.

Use this release-specific matrix to tie a note in the changelog to observable evidence:

Compose upgrade checks, using version 1.13 as an example

| Release signal | Risk to check | Evidence to keep |
| --- | --- | --- |
| Kotlin 2.2+ and compileSdk 37.1 requirements | Build may fail or resolve an unintended toolchain | Resolved plugin versions and a clean affected-module build |
| onFocusedBoundsChanged removed | Custom focus containers may stop revealing the focused item | UI test for keyboard or D-pad focus and scroll-into-view behavior |
| clickable adds system interaction sound | Existing custom feedback may become duplicated | Manual check with system sounds enabled and disabled |
| Lazy layout cache window moved to layout APIs | Scroll behavior or off-screen memory use may change | Fast and reverse scroll test plus memory observation |
| Exit animation can render a captured frame | Snapshot may not respond to gestures or later content updates | State-clear and exit-animation test on the actual screen |

## Measure performance on the same workload

When performance is the reason for upgrading, compare the same scenarios before and after: device model, Android version, build type, dataset, network state, warm-up, and repeated runs. Separate cold-start time from fully drawn time and scroll frame timing. A release blog's benchmark describes its own app, device, and method; it cannot predict your screen's result.

Compose recomposition tracing can help locate state writes behind repeated recompositions, but the release notes warn that recording adds overhead. Use tracing to diagnose a cause, then turn it off for timing runs. Keep the capture, test conditions, and raw measurements with the change so reviewers can distinguish reproduced results from expectations.

## Roll out with a clear rollback point

Review the final dependency diff and run the project's normal CI suite before merging. Where release controls allow it, canary the upgraded app and watch crash, startup, input, and frame-time signals against the same release's baseline. Keep unrelated feature work out of the dependency change so a regression has a short path to diagnosis.

If a regression appears, move the dependency and compatibility settings back to the prior locked versions. Keep the failing test or trace and record the exact library and toolchain versions for a later, controlled retry.

## Sources

- [Android Developers: Jetpack Compose November 2026 release notes](https://developer.android.com/blog/posts/jetpack-compose-november-2026-release)
- [Android Developers: Compose BOM mapping and usage](https://developer.android.com/develop/ui/compose/bom)
- [Android Developers: Test your Compose layout](https://developer.android.com/develop/ui/compose/testing)
- [Juejin: Original post on Jetpack Compose 1.13, published November 20, 2026](https://juejin.cn/post/7709778061000441910)
- [Related platform guide: What is Juejin?](https://threadeast.xyz/guides/juejin-explained)

Corrections: https://threadeast.xyz/corrections
