Android 1 min read 151 words

Android Studio Quail 4 Patch 1 fixes dex files that crashed apps on launch

AGP 9.4.1 also fixes a 38% D8 slowdown, R8 non-determinism and two VerifyErrors.

Updated

Android Studio Quail 4 Patch 1 and Android Gradle Plugin 9.4.1 fix a bug in which AGP intermittently produced dex files that failed verification and crashed the app on launch.

The release notes list these other general fixes, most of them in the D8 dexer and the R8 shrinker:

  • D8 9.2.14 being about 38% slower than 8.13.6 in mergeProjectDexDebug on identical input and output.
  • R8 build non-determinism, where identical input produced different dex and mapping files.
  • A VerifyError where the outliner incorrectly extended a try-catch region, and an R8 VerifyError on Android 4.4.
  • An ArrayIndexOutOfBoundsException in D8 debug mode, a regression between R8 8.8.34 and 8.9.27.
  • R8 writing a .kotlin_module file with a colon in its name, which is invalid on Windows.
  • High per-rule memory consumption.
  • AGP 9.3.0's optimization { enable = true } DSL not setting isMinifyEnabled on the ApplicationVariant object.

The notes do not say which AGP versions produced the bad dex files.

Sources

  1. Android Studio Quail 4 Patch 1 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.