Android Studio 4.1 Beta 4 is now available in the Beta channel.
If you have Android Studio set up to receive updates on the Beta 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.
System Trace UI Improvements
The System Trace UI in the Android Studio profiler now includes:
- Box selection: In the Threads section, you can now drag your mouse to perform a box selection of a rectangular area and select across multiple threads to inspect all of them at once.
- Analysis Summary tab: The new Summary tab in the Analysis panel displays information about trace events and thread states.
- Display data: In the Display section, new timelines for SurfaceFlinger and VSYNC help you investigate rendering issues in your app's UI.
For more information, see the release notes.
General fixes
This update also includes fixes for the following public issues:Android Gradle Plugin
- Issue #158747359: ./gradlew connectedCheck fails with "com.android.ddmlib.InstallException: Unknown failure: Error: Unknown option: -g"
- Issue #160155450: BuildConfig not correctly honoring contract around quotations in String[]
- Issue #157781501: Android gradle plugin fails to generate test coverage report with Gradle 6.4.1
- Issue #160330055: GradleAnalyticsEnvironment leaks ProviderFactory
- Issue #159871229: Debug build causes duplicate definitions for desugared library classes
- Issue #159993801: Double click on a NULL cell replaces NULL with empty string
- Issue #158644894: Unable to build with Java desugaring in AGP 4.1.0-beta01
- Issue #159275214: [library desugar] Desugar java.util.TimeZone.getTimeZone(ZoneId zoneId)
- Issue #156772381: Bug: IDE tells me to update a file that doesn't exist, and in illogical place, of gradle version
- Issue #157781491: Lint using incorrect SDK version
- Issue #160351050: Enum inlining uses the "wrong" name sometimes
For information on new features and changes in all preview builds of Android Studio 4.1, 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.