Android Studio Arctic Fox Canary 6 (2020.3.1.6) 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 Arctic Fox, 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.
Compose support in Layout Inspector
Starting with Arctic Fox Canary 6, you can now inspect layouts written with the new Android declarative UI framework, Jetpack Compose. Whether your app uses layouts fully written in Compose or layouts that use a hybrid of Compose and Views, the Layout Inspector helps you understand how your layouts are rendered on your running device.
This feature requires that each module using the Compose UI declare the following dependencies.
debugImplementation "androidx.compose.ui:ui-tooling:1.0.0-alpha11"
debugImplementation "org.jetbrains.kotlin:kotlin-reflect:1.4.21"
To get started, deploy your app to a connected device and then open the Layout Inspector window by selecting View > Tool Windows > Layout Inspector.
To learn more, see the release notes.
Automated test snapshots
When you inspect failed assertions after running instrumented tests, it's sometimes difficult or time consuming to reproduce that test failure again. However, reproducing those failures on your connected device is critical in helping you diagnose the issue, either by attaching a debugger or interacting with the app at the time of failure.
In Android Gradle plugin 7.0-alpha06
and higher, we're introducing
automated test snapshots – a quicker way to reproduce test failures by
leveraging Emulator snapshots. In other words, when your instrumented tests
running on a connected Emulator encounter a Java or Kotlin assertion that fails,
the device takes a snapshot at the time of failure. After your test run
completes, you can then reload the snapshot on the same device in order to
reproduce and investigate that failure.
To learn more, see the release notes.
General Fixes
Android Gradle Plugin- Bug: choosing Lint quick-fix for conversion to WEBP, its dialog gets stuck, hard to even close it
- Issue #174839536: ConnectedAndroidTest still run even there is no test files with Gradle Plugin 7.0.0-alpha02
- Issue #176998942: Exception while trying to import/sync project in AS 4.2 b3 with Gradle source dependency. 4.1.1 passes.
- Issue #175337498: AGP 4.1, Gradle 6.7: mergeDebugNativeLibs is not up to date and slows down Gradle builds.
- Issue #169266007: issues related with android.defaultConfig.ndk.debugSymbolLevel
- Issue #175718909: After upgrade NDK to 22, AGP-externalNativeBuild error
- Issue #171462060: [AGP 4.1.0] ./gradlew app:installDebugAndroidTest incorrectly tries to fetch APK from App Bundle
- Issue #171039472: Android Studio crashing on launch on Mac OS Big Sur
- Issue #171563671: Pinch & Zoom no longer works
- Issue #170656529: [AGP 4.1] lint module being evaluated in improper context
- Issue #175741231: Bug: choosing Lint quick-fix for conversion to WEBP, its dialog gets stuck, hard to even close it
- Issue #174793640: Arctic Fox Canary 2: Android Gradle Plugin Upgrade Assistant is upgrading kotlin gradle plugin to the wrong value