Thursday, August 8, 2024

Android Studio Koala | 2024.1.1 Patch 2 now available

Android Studio Koala | 2024.1.1 Patch 2 is now available in the Stable channel.

If you already have an Android Studio build on the Stable channel, you can get the update by clicking Help > Check for Updates (or Android Studio > Check for Updates on macOS). Otherwise, you can download it here.

For information on new features and changes in Android Studio Koala, see the Android Studio release notes. For details of bugs fixed in each previous release of Android Studio Koala, see closed issues.

General fixes and features

Below is a list of general fixes in Android Studio Koala | 2024.1.1 Patch 2 and Android Gradle Plugin 8.5.2. These are a result of your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. You can also vote for an existing issue to indicate that it also affects you.

Fixed Issues
Android Gradle Plugin
AGP 8.5: Many more "mergeDebugResources" tasks are run, slowing down builds
Adding srcs dir via Variant API not working as expected
C++ Editor
Trouble with clang-tidy in AS Koala
Dexer (D8)
java.lang.VerifyError: Verifier rejected class com.pax.log.LogUtils: java.lang.StackTraceElement com.pax.log.LogUtils.getCaller(com.pax.log.b, java.lang.StackTraceElement[], int) failed to verify
Lint
Lint: SetTextI18n complains about assigning an empty string.
Preview
AS Compose Preview doesn't work with generated assets
Shrinker (R8)
[r8 8.5]r8 horizontal class merge causes verify error on Android5 when disable api modeling
A Wear OS release built with Gradle Plugin 8.4.0/8.5.0 may cause java.lang.IllegalAccessError
[r8 8.5] vertical class merger causing runtime NPE
Gradle Sync with AGP 8.6.0-alpha06 fails with "Unexpected backport missing from Android U" error in R8
The dex file generated by R8 shows "Unable to find static main(String[]) in 'Test'" when executed
Different Behavior Between Programs packed by R8 and D8
R8 (AGP 8.5.0+) fails with error "Unexpected rewriting of item: ... to two distinct items:..."
R8 Processing Error Possibly Due to Right Shift Operator
R8 NullPointer after updating to Kotlin 2.0
Window
Split type error occurred