跳到正文
DEV Community· Mango Developer·· 52 分鐘前AI 評分56

如何以 Android CLI 1.1 追蹤 Jetpack Compose 1.13 重組並自動化建置

How to Trace Jetpack Compose 1.13 Recompositions and Automate Builds With Android CLI 1.1

AI 導讀

這篇教學整理 Android CLI 1.1.16919734、SDK Platform-Tools 37.0.3 及 Jetpack Compose 1.13(BOM 2026.11.01)的命令列工作流程,説明如何追蹤重組並自動化 Android 開發檢查。

正文

Three core Android developer releases converged between November 13 and November 19, 2026: Android CLI 1.1.16919734, SDK Platform-Tools 37.0.3, and the stable Jetpack Compose November '26 release (version 1.13, BOM 2026.11.01). Together, they move several workflows that previously required keeping a full Android Studio window open, including Jetpack Compose recomposition state tracing, lightweight Perfetto object-graph heap dumps, @Preview PNG rendering, and Firebase Crashlytics field diagnostics, directly into scriptable terminal commands.

If you already connected an external coding agent to your IDE using our guide on how to connect Claude, Codex or Antigravity to Android Studio Rabbit 2, configuring the November 2026 command-line toolchain is the natural next step. Giving your local terminal or CI runner direct access to android profiler, android preview, android input, and android analyze lets you verify UI changes, measure R8 DEX footprints, and pinpoint unnecessary Compose state writes before opening a pull request.

We have not benchmarked these tools on our own physical device rack; every command flag, Gradle dependency coordinate, environment variable, and API signature below comes directly from Google's official Android CLI, SDK Platform-Tools, and Jetpack Compose 1.13 documentation.

What changed across the November 2026 Android command-line stack

Before editing build scripts, it helps to see how the three November 2026 updates fit together. Android CLI 1.1.16919734 acts as the high-level terminal orchestrator for building, deploying, profiling, and interacting with apps. Underneath it, SDK Platform-Tools 37.0.3 overhauls adb transport reliability on Linux, macOS (including Apple Silicon M6 running macOS 27), and Windows while retiring legacy incremental flags. Inside the app binary itself, Jetpack Compose 1.13 (androidx.compose:compose-bom:2026.11.01) exposes the runtime hooks and performance APIs that the CLI profiler reads.

The table below maps the key November 2026 capabilities across their required tool versions and minimum target constraints.

Tool or library component November 2026 version Key new terminal or API capability Minimum OS or project requirement
Android CLI 1.1.16919734 (Nov 13, 2026) Repositioned-file delta installs, Compose systemtrace flags, Perfetto heap dumps, JSON input status Android SDK + authenticated CLI session for remote/Crashlytics commands
SDK Platform-Tools (adb) 37.0.3 (Nov 19, 2026) libadbusb default on Linux/macOS, adb pair --qr, *_dlkm partition sync, --fastdeploy deprecated Linux, macOS (fixes M6 macOS 27 crash), or Windows with Universal C Runtime
Jetpack Compose BOM 2026.11.01 (Compose 1.13, Nov 18) runtime-tracing 1.13, computedStateOf, CapturedAnimatedVisibility, TestFailurePolicy Kotlin 2.2 or newer and compileSdk 37.1
Perfetto heap dump capture android profiler heapdump --type=perfetto Captures object references without field values for smaller trace archives than .hprof Android 12 (API level 31+) and a profileable or debuggable app manifest

Understanding those version boundaries prevents the most common upgrade failures, such as passing --enable=compose.recomposition against an older Compose 1.12 runtime or watching CI scripts break because adb install --fastdeploy was deprecated in Platform-Tools 37.0.3.

Step 1: Install Android CLI 1.1.16919734 and SDK Platform-Tools 37.0.3

You can install or upgrade Android CLI through standard system package managers (apt-get, winget, or homebrew) or manage your SDK packages directly from the terminal. Once the binary is on your PATH, update your platform tools to revision 37.0.3 and enable shell autocompletion so subcommands expand cleanly in Bash or Zsh.

BashCopy

Check your installed Android CLI and ADB versions

android info
adb --version

BashCopy


shell

Update SDK Platform-Tools to 37.0.3 via Android CLI

android sdk update platform-tools


plaintext

BashCopy


shell

Generate and load shell completion for Zsh or Bash

android completion zsh > "${fpath[1]}/_android"


markdown

Because Android CLI 1.0.16406183 and newer take an inter-process lock during android sdk operations and unpack native downloader libraries lazily only when network calls occur, startup is roughly twice as fast as mid-2026 builds and safe to invoke across concurrent CI jobs.

Configuring ADB 37.0.3 USB polling and terminal QR pairing

SDK Platform-Tools 37.0.3 changes how adb talks to physical USB buses on Linux and macOS. Earlier releases toggled between libusb and kernel netlink hotplug events, which occasionally dropped devices during in-place USB resets or concurrent adb start-server race conditions. Revision 37.0.3 introduces libadbusb as the default USB backend on both Linux and macOS (matching the Windows rollout from 37.0.1).

On Linux, libadbusb polls the USB bus every 1000ms by default rather than relying exclusively on netlink hotplug events. You can tune that polling interval or fall back to the legacy USB backend using environment variables before starting the server:

BashCopy


shell

Restart ADB with a faster 500ms USB poll interval on Linux

adb kill-server
ADB_USB_LINUX_POLL_INTERVAL_MS=500 adb start-server


plaintext

BashCopy


shell

Optional fallback if a specific USB controller misbehaves with libadbusb

adb kill-server
ADB_USB_LEGACY=1 adb start-server


plaintext

On macOS, revision 37.0.3 also patches two severe crashes: an _Unwind_Backtrace abort on Apple Silicon M6 machines running macOS 27 triggered by non-ADB mDNS records, and a KERN_INVALID_NAME Mach port exception when attaching a USB phone on systems with Apple Mobile File Integrity (AMFI) disabled.

If you prefer testing over Wi-Fi without copying six-digit pairing codes by hand, 37.0.3 adds terminal QR code generation directly inside adb:

BashCopy


shell

Render a scannable Wireless Debugging QR code directly in your terminal

adb pair --qr


markdown

Scan the terminal QR code from Settings > Developer options > Wireless debugging > Pair device with QR code on your test phone, and adb completes the TLS handshake automatically.

Comparison diagram of Android CLI Delta Install Engine and ADB 37.0.3 libadbusb architecture

Expand

Comparison diagram of Android CLI Delta Install Engine and ADB 37.0.3 libadbusb architecture

Replacing deprecated adb fastdeploy with delta installs

Platform-Tools 37.0.3 officially deprecates adb install --fastdeploy in favor of android install and android run. While --deprecated-fastdeploy remains as a temporary bridge flag in adb, Google's active incremental deployment work now lives inside Android CLI's delta install engine.

In Android CLI 1.1.16919734, delta installs gained repositioned-file reuse alongside zero-copy kernel system calls. Previously, if a small code edit shifted the byte offset of unchanged asset or DEX entries inside the packaged APK, the installer had to resend those shifted blocks over USB or Wi-Fi. Now, android install and android run detect unchanged files even when their position inside the APK changes, keeping incremental pushes fast across large multi-module builds:

BashCopy


gradle

Build and deploy the default debug variant of :app using repositioned-file delta install

android run :app


plaintext

BashCopy


plaintext

Or push a prebuilt APK with delta install enabled by default

android install app/build/outputs/apk/debug/app-debug.apk


plaintext

BashCopy


plaintext

If you need to bypass repositioned-file reuse to debug a packaging anomaly:

android install --use-delta-install-instructions=COPY,DATA app/build/outputs/apk/debug/app-debug.apk


markdown

Note that positional build references such as :app automatically default to the debug build variant in Android CLI 1.1, saving repetitive flag typing during local iteration.

Step 2: Upgrade your project to Jetpack Compose 1.13 (BOM 2026.11.01)

To use the November 2026 recomposition profiler and static analysis checks, upgrade your application to the Jetpack Compose November '26 stable release. Version 1.13 across core Compose artifacts requires Kotlin 2.2 or newer and compileSdk 37.1.

Open your module's build.gradle.kts file and update compileSdk, the Compose BOM, and the runtime-tracing dependency required by android profiler systemtrace:

KotlinCopy


gradle
android {
namespace = "com.example.telemetryapp"
compileSdk = 37
compileSdkExtension = 1 // or compileSdkPreview / compileSdk 37.1 syntax per AGP setup


plaintext

KotlinCopy


gradle
defaultConfig {
minSdk = 26
targetSdk = 37
}


plaintext

KotlinCopy


gradle
testOptions {
unitTests.isIncludeAndroidResources = true
// Optional: enable Compose 1.13 failure artifacts globally across instrumentation tests
execution = "ANDROIDX_TEST_ORCHESTRATOR"
animationsDisabled = true
}
}


plaintext

KotlinCopy


gradle
dependencies {
val composeBom = platform("androidx.compose:compose-bom:2026.11.01")
implementation(composeBom)
androidTestImplementation(composeBom)


plaintext

KotlinCopy


gradle
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.material3:material3:1.5.0")
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-tooling-preview")
debugImplementation("androidx.compose.ui:ui-tooling")


plaintext

KotlinCopy


gradle
// Required for Android CLI 1.1.16919734 Compose composition and recomposition tracing
implementation("androidx.compose.runtime:runtime-tracing:1.13.0")
}


markdown

Also verify that your AndroidManifest.xml includes profileable android:shell="true" inside the application manifest tag so Perfetto system traces and heap dumps can attach to release-like builds without full debuggable overhead.

Step 3: Record Jetpack Compose recomposition traces and Perfetto heap dumps

Tracking down why a screen stutters during scrolling used to mean guessing which MutableState triggered a cascade of recompositions. By pairing androidx.compose.runtime:runtime-tracing:1.13.0 with Android CLI 1.1.16919734, you can capture every composable execution slice alongside the exact state reads, state writes, and stack traces that caused each invalidation.

Three-step profiling pipeline from Compose BOM 2026.11.01 to android profiler and Perfetto Trace ZIP

Expand

Three-step profiling pipeline from Compose BOM 2026.11.01 to android profiler and Perfetto Trace ZIP

Running composition vs. recomposition system traces

Android CLI splits Compose system tracing into two granularity levels so you can balance diagnostic detail against recording overhead:

  1. --enable=compose.composition: Records a trace slice for each composable function that runs, showing duration and call hierarchy with minimal runtime overhead.
  2. --enable=compose.recomposition: Records composable slices plus every state read and state write affecting composition, capturing the state object's string representation and a full stack trace pointing to the exact line of code that mutated the state.

Run the lifecycle commands below from your project root while a device or headless emulator is connected:

BashCopy


shell

Prepare the device and app for low-overhead system tracing

android profiler systemtrace prepare --package com.example.telemetryapp


plaintext

BashCopy


shell

Start recording with full state read/write recomposition stack traces

android profiler systemtrace start \
--package com.example.telemetryapp \
--enable=compose.recomposition


plaintext

BashCopy


shell

Exercise the UI (or trigger an automated android input script), then stop and save the ZIP archive

android profiler systemtrace stop --output traces/checkout-recomposition-trace.zip


plaintext

BashCopy


plaintext

Check or clean up active profiling sessions if needed

android profiler session list
android profiler session status


markdown

Because recording state string representations and stack traces on every write adds measurable CPU overhead, always disable compose.recomposition when benchmarking raw frame timing, and switch back to compose.composition or standard system traces once you have isolated the offending state mutation. The resulting .zip archive opens directly inside the Android Studio Profiler or Perfetto UI.

Capturing lightweight Perfetto heap dumps on Android 12+

Traditional .hprof JVM heap dumps capture every primitive array and string value in memory, resulting in multi-hundred-megabyte files that take ages to pull over wireless debugging. Android CLI 1.1.16919734 adds --type=perfetto to android profiler heapdump capture for devices running Android 12 (API level 31) or higher:

BashCopy


shell

Capture a compact Perfetto object-graph heap dump (objects + references, omitting raw values)

android profiler heapdump capture \
--package com.example.telemetryapp \
--type=perfetto \
--output traces/leak-graph.perfetto-trace


plaintext

BashCopy


shell

Fall back to a full .hprof dump only when you must inspect actual string or byte array contents

android profiler heapdump capture \
--package com.example.telemetryapp \
--output traces/full-memory.hprof


plaintext

Because a Perfetto heap dump records object instances and the reference edges between them while skipping raw field payloads, it transfers in a fraction of the time and immediately answers the core memory-leak question: which long-lived singleton or callback is still holding a reference to a destroyed screen or composable state holder.

Step 4: Fix the top recomposition and frame-time bottlenecks in Compose 1.13

Once your trace highlights an expensive composable or a janky exit transition, Jetpack Compose 1.13 provides several new primitives designed to cut invalidation overhead and eliminate mid-animation state flicker. You can also audit your repository automatically by installing the official Compose performance static analysis skill through Android CLI:

BashCopy


plaintext

Search and install the official Jetpack Compose performance and adaptive skills

android skills find compose
android skills add jetpack-compose-performance jetpack-compose-adaptive
android skills list


markdown

The performance skill audits your code across seven categories: state and stability, lazy layouts, general layouts, graphics, animation, effects and threading, and Modifier.Node migrations. Below are the four high-impact code patterns introduced in Compose 1.13 that resolve the most frequent findings.

1. Replace lightweightderivedStateOf checks with computedStateOf

Developers frequently wrap scroll offsets or animation progress checks inside derivedStateOf to prevent a composable from recomposing on every pixel scrolled. However, derivedStateOf allocates and maintains an internal cache object. When the calculation itself is trivial, such as comparing a scroll index against a threshold, maintaining that cache costs more overhead than the boolean comparison itself.

Compose 1.13 introduces computedStateOf, which skips result caching while still invalidating the reading composition only when the computed output changes:

KotlinCopy


kotlin
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.computedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember


plaintext

KotlinCopy


kotlin
@Composable
fun FeedScreenWithScrollTopButton(listState: LazyListState) {
// computedStateOf recalculates without caching overhead and only invalidates
// FeedScreenWithScrollTopButton when the boolean result flips between true and false.
val showScrollToTop by remember {
computedStateOf { listState.firstVisibleItemIndex > 4 }
}


plaintext

KotlinCopy


jsx
if (showScrollToTop) {
ScrollToTopFab()
}
}


markdown

Reserve derivedStateOf for genuinely expensive transformations (such as sorting or filtering a large in-memory list), and default to computedStateOf for threshold checks, boolean conditions, and fast arithmetic over high-frequency states.

2. Stop exit-animation flicker withCapturedAnimatedVisibility

With standard AnimatedVisibility, Compose keeps composing the outgoing content throughout the entire exit animation. When a user dismisses a detail sheet by setting selectedItem = null, the exiting composable suddenly sees null mid-animation, forcing you either to cache a stale copy of the state manually or watch the card vanish into a blank frame before the fade-out finishes.

Compose 1.13 adds CapturedAnimatedVisibility, which snapshots the final rendered frame the moment visible turns false and animates that snapshot out while releasing the underlying state immediately:

KotlinCopy


kotlin
import androidx.compose.animation.CapturedAnimatedVisibility
import androidx.compose.animation.core.tween
import androidx.compose.animation.expandVertically
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.shrinkVertically
import androidx.compose.runtime.Composable


plaintext

KotlinCopy


kotlin
@Composable
fun OrderDetailsSheet(activeOrder: OrderSummary?) {
// When activeOrder becomes null, CapturedAnimatedVisibility immediately unmounts
// OrderCard and animates a frozen snapshot of its last frame, running 7-8% faster on exit.
CapturedAnimatedVisibility(
visible = activeOrder != null,
enter = fadeIn() + expandVertically(),
exit = fadeOut(tween(400)) + shrinkVertically(tween(400)),
) {
if (activeOrder != null) {
OrderCard(order = activeOrder)
}
}
}


markdown

According to Google's Compose 1.13 release benchmarks, freeing the outgoing composition immediately reduces exit frame times by 7 to 8 percent compared to AnimatedVisibility. Keep AnimatedVisibility only when the exiting UI must stay interactive during the transition or when children rely on Modifier.animateEnterExit().

3. Configure window-based prefetching withLazyLayoutCacheWindow and FlexBox

In Compose 1.13, LazyLayoutCacheWindow graduates to stable across LazyColumn, LazyRow, LazyVerticalGrid, and staggered grids, moving cache window configuration directly onto the layout composable rather than burying it inside rememberLazyListState. It replaces legacy single-item prefetching with a viewport-relative ahead-and-behind window. At the same time, FlexBox and Grid graduate to stable while FlowRow, FlowColumn, ConstraintLayout, and MotionLayout in Compose are deprecated in favor of FlexBox:

KotlinCopy


kotlin
import androidx.compose.foundation.layout.FlexBox
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyLayoutCacheWindow
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp


plaintext

KotlinCopy


kotlin
@Composable
fun TagCatalogList(sections: CatalogSectionList) {
// Retain half a viewport behind and prefetch one full viewport ahead
val cacheWindow = LazyLayoutCacheWindow(
aheadFraction = 1.0f,
behindFraction = 0.5f
)


plaintext

KotlinCopy


kotlin
LazyColumn(cacheWindow = cacheWindow) {
items(sections, key = { it.id }) { section ->
// Stable FlexBox replaces FlowRow and limits wrapped lines to 4 items max
FlexBox(maxItemsInEachLine = 4) {
section.tags.forEach { tag ->
TagChip(label = tag)
}
}
}
}
}


markdown

4. ReuseImageVector instances and migrate to TextFieldState

Two smaller Compose 1.13 changes also show up in profiling traces:

  • Shared VectorPainter draw caches: ComposeUiFlags.isVectorDrawCacheSharingEnabled is now enabled by default, allowing VectorPainter to share rasterized bitmap caches across identical static icons rendered at the same size. Make sure your code holds and reuses a single ImageVector reference rather than regenerating vector objects inside item lambdas.
  • State-based text fields: Value-based BasicTextField(value, onValueChange) and the entire Compose Material 2 library are now deprecated. Migrate form inputs to TextFieldState along with InputTransformation and OutputTransformation (which replace the deprecated VisualTransformation API) to eliminate asynchronous state synchronization glitches during fast typing.

Step 5: Automate headless Compose previews, UI input, and DEX analysis in CI

Once your code compiles cleanly against BOM 2026.11.01, you can wire Android CLI 1.1.16919734 into local pre-commit hooks or CI pipelines to verify UI layout trees, test interactive flows, and guard against APK size regressions without booting a desktop IDE.

Diagram showing android preview render, android layout and input JSON output, and android signals Crashlytics pipeline

Expand

Diagram showing android preview render, android layout and input JSON output, and android signals Crashlytics pipeline

Rendering@Preview functions to PNG and JSON headlessly

With android preview, you can enumerate every @Preview composable in a module and render both its visual PNG output and its semantic component tree JSON straight from the command line:

BashCopy


plaintext

List all discovered @Preview functions in the :app target

android preview list :app


plaintext

BashCopy


shell

Render a specific @Preview function by fully qualified name without Android Studio

android preview render \
--fqn com.example.telemetryapp.ui.OrderCardPreview \
--output artifacts/previews/


markdown

The command writes both the rendered .png image and the structured component tree .json file into ./artifacts/previews/, making visual regression diffs and accessibility tree checks straightforward in headless Linux CI containers.

Driving UI flows with JSON-formattedandroid input and TestFailurePolicy

In Android CLI 1.1.16919734, two important reliability fixes landed for automation scripts:

  1. Non-zero emulator exit codes: android emulator create, start, stop, and remove now exit with a non-zero code on failure and write diagnostic errors to stderr, preventing broken CI stages from silently passing.
  2. Standardized JSON results on android input: Every android input subcommand (tap, text, swipe, scroll, key) now prints a uniform JSON object containing a results list to stdout. Element-matching failures, such as zero matches or ambiguous multiple matches, are reported inside each item's status field rather than unstructured text on stderr.

Combine android emulator start --headless, android layout, and android input to run a smoke check from a shell script:

BashCopy


shell

Boot a headless emulator and fail immediately if startup errors occur

android emulator start Pixel_9_API_37 --headless


plaintext

BashCopy


shell

Dump interactive UI elements without waiting for animations to settle

android layout --no-idle > artifacts/current-layout.json


plaintext

BashCopy


shell

Tap the submit button using selector syntax and inspect the JSON status field

android input tap "text=Confirm Order" | jq -e '.results[0].status == "OK"'


plaintext

For instrumentation tests running via runComposeUiTest, pair your CLI pipeline with Compose 1.13's new TestFailurePolicy. Whenever an assertion fails in CI, TestFailurePolicy automatically dumps a screenshot and the full UI semantics hierarchy at the exact instant of failure:

KotlinCopy


kotlin
import androidx.compose.ui.test.ComposeUiTestConfig
import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.FailureArtifact
import androidx.compose.ui.test.TestFailureHandler
import androidx.compose.ui.test.TestFailurePolicy
import androidx.compose.ui.test.runComposeUiTest
import org.junit.Test


plaintext

KotlinCopy


java
class CheckoutSmokeTest {


plaintext

KotlinCopy


kotlin
@OptIn(ExperimentalTestApi::class)
private val ciFailureConfig = ComposeUiTestConfig(
failurePolicy = TestFailurePolicy(
screenshotCaptureMode = TestFailurePolicy.CaptureMode.Enabled,
uiHierarchyCaptureMode = TestFailurePolicy.CaptureMode.Enabled,
failureHandlers = listOf(
TestFailureHandler { context ->
val screenshot = context.artifacts.firstOrNull {
it.type == FailureArtifact.Type.Screenshot
}
println("Captured failure artifact: ${screenshot?.name} for ${context.error.message}")
}
)
)
)


plaintext

KotlinCopy


kotlin
@OptIn(ExperimentalTestApi::class)
@test
fun confirmOrderDisplaysReceipt() = runComposeUiTest(config = ciFailureConfig) {
// Test assertions here automatically dump PNG + semantics tree on failure
}
}


plaintext

You can also turn on both captures globally across an entire test suite without touching individual test classes by adding testInstrumentationRunnerArguments in build.gradle.kts:

KotlinCopy


gradle
android {
defaultConfig {
testInstrumentationRunnerArguments["androidx.compose.ui.test.failure.isScreenshotCaptureEnabled"] = "true"
testInstrumentationRunnerArguments["androidx.compose.ui.test.failure.isUiHierarchyCaptureEnabled"] = "true"
}
}


markdown

Auditing DEX sizes and R8 rules withandroid analyze

Before publishing a release build or an internal library AAR, run android analyze --format=json to inspect DEX footprints, R8 shrinking metrics, and warnings about overly broad consumer keep rules. Note a breaking schema change in Android CLI 1.1.16919734: for library artifacts (.aar and .jar), the dexSizeBytes fields inside d8CompileResult and r8CompileResult are now serialized as 64-bit integer strings rather than JSON numbers.

Update any jq or Python CI scripts that parse android analyze output to convert dexSizeBytes with tonumber:

BashCopy


shell

Inspect an AAR artifact and convert 64-bit string dexSizeBytes to an integer in jq

android analyze --format=json library/build/outputs/aar/library-release.aar \
| jq '.r8CompileResult.dexSizeBytes | tonumber'


markdown

Pulling production Crashlytics signals and OOM heap dumps

When an issue escapes staging and shows up in production, Android CLI's android signals command connects directly to Firebase Crashlytics so you can inspect crash clusters and download field out-of-memory (OOM) heap dumps without leaving your terminal:

BashCopy


shell

Authenticate Android CLI with your Google account

android auth login
android auth status


plaintext

BashCopy


plaintext

Discover available Firebase Crashlytics projects and app contexts

android signals context


plaintext

BashCopy


shell

List top crash and ANR clusters and inspect facet breakdowns

android signals crashes list --app com.example.telemetryapp
android signals crashes facets --issue-id CRASH_ISSUE_ID
android signals crashes samples --issue-id CRASH_ISSUE_ID


plaintext

BashCopy


shell

List and download field heap dumps collected during OOM or memory-limiter kills

android signals heaps list --app com.example.telemetryapp
android signals heaps download --heap-id HEAP_ID --output traces/field-oom.hprof

Pulling a field heap dump alongside the session's custom keys and logs lets you compare real-world memory retention directly against the local --type=perfetto heap dumps you captured during development.

Step 6: Troubleshooting common November 2026 upgrade errors

When upgrading a team repository across Android CLI 1.1.16919734, SDK Platform-Tools 37.0.3, and Compose BOM 2026.11.01 simultaneously, most build or script failures trace back to one of six breaking changes.

The table below lists the exact symptom, root cause, and fix for each issue.

Symptom or error message Root cause in November 2026 releases Concrete fix
--enable=compose.recomposition produces an empty trace or missing state slices App is missing androidx.compose.runtime:runtime-tracing:1.13.0 or running an older Compose BOM Upgrade to compose-bom:2026.11.01 and add implementation("androidx.compose.runtime:runtime-tracing:1.13.0")
android profiler heapdump --type=perfetto fails to capture Target device runs Android 11 or lower, or app manifest lacks profileable / debuggable Use a device or emulator on Android 12 (API 31+) and add profileable android:shell="true" to AndroidManifest.xml
CI parser fails with type error on r8CompileResult.dexSizeBytes Android CLI 1.1.16919734 serializes dexSizeBytes in library .aar/.jar JSON output as 64-bit integer strings Pipe dexSizeBytes through tonumber in jq or int() in Python scripts
Automation script fails to parse android input failures from stderr android input now outputs a unified JSON object on stdout for every subcommand Parse .results[].status from stdout JSON instead of grepping stderr text
Modifier.onFocusedBoundsChanged callback never fires in Compose 1.13 Implementation was removed in Compose 1.13 after deprecation in 1.12 Call FocusTargetModifierNode.getFocusedRect() inside a custom Modifier.Node or pair Modifier.onFocusChanged with BringIntoViewRequester
Unexpected click sound effects play on custom Compose buttons Compose 1.13 enables standard Android platform interaction sounds by default on Modifier.clickable Audit custom clickable wrappers if your app already plays manual sound effects on tap

By moving your local shell and CI pipelines onto Android CLI 1.1.16919734, SDK Platform-Tools 37.0.3, and Jetpack Compose 1.13, you cut out redundant APK file uploads, stabilize USB and wireless adb connections, and turn Compose recomposition hunting from visual guesswork into repeatable command-line traces.


Originally published on Mango Developer.

來源:DEV Community · dev.to