Android Studio 4.2 Canary 13 is now available in the Canary and Dev channels.
If you have Android Studio set to receive updates on the Canary or Dev channel, you can get the update by choosing Help > Check for Updates (Android Studio > Check for Updates on macOS). Otherwise, you can download it here.
For information on new features and changes in all preview builds of Android Studio 4.2, see the Android Studio Preview release notes. For details of bugs fixed in each preview release, see previous entries on this blog.
We greatly appreciate your bug reports, which help us to make Android Studio better. If you encounter a problem, let us know by reporting a bug. Note that you can also vote for an existing issue to indicate that you are also affected by it.
Android Gradle plugin support for Jetpack Compose
Starting with Android Gradle Plugin 4.2 Canary 13, only Jetpack Compose Compiler 1.0.0-alpha-04 and higher will be supported.
General Fixes
This update includes fixes for the following issues:
Android Gradle Plugin- Issue #167966251: Use build service for project options
- Issue #156857164: Can't select a build variant (flavor)
- Issue #168784098: getValue operator extension is not automatically imported for mutableStateOf/state
- Issue #151654753: After Gradle sync, running app causes another Gradle sync
- Issue #168794947: Lint's Parcelize check has false positives when using the new @Parcelize annotation
- Issue #169234685: Autosuggestion for API 29 is faulty
Additionally the issues below were addressed in this release but may not be necessarily fixed:
Dexer (D8)- Issue #169183194: D8 mergeProjectDexDebug fails on AS / AGP 4.2.0-alpha12 due to SafeArgs generated classes
- Issue #169230467: Empty Composable does not render in the Studio preview
- Issue #156855259: Different runtime behavior of started service via Studio "Run" button
- Issue #168763389: Android studio doesn't install the app
- Issue #156100314: Consider handling Crashlytics versions in the upgrade assistant