Android 1 min read 129 words

Android Studio Rabbit 2 Canary 4 fixes a Compose Preview memory leak

StudioModuleClassLoader instances were never released, filling Metaspace until an OutOfMemoryError.

Updated

Android Studio Rabbit 2 Canary 4, released October 8, 2026, fixes a Compose Preview bug in which StudioModuleClassLoader instances were never released, so Metaspace filled until the IDE hit an OutOfMemoryError.

The release notes list these other general fixes:

  • The ACP agent failing to start when the npm registry mirror had not synced the version pinned by the ACP registry (ETARGET).
  • Gradle 9.8.0 reporting Configuration.setVisible() deprecations with AGP 9.4.1.
  • An NPE from PathTracker.
  • KMP Android library resource directories added through sources.res.addStaticSourceDirectory not being recognized by the IDE.
  • The physical device screen mirror showing at a resolution too low to read text.
  • The Pixel Watch companion crashing after emulator pairing.

The notes give an issue number for each fix but no detail on how it was fixed.

Sources

  1. Android Studio Rabbit 2 Canary 4 now available Primary Android Studio Releases

Researched and drafted with AI assistance from the primary sources listed above, then checked against those sources before publication. Every factual claim here is traceable to a cited source; where the sources are silent, so are we. How this works.