Android Studio 4.2 Released – iProgrammer

Android Studio 4.2 Released
Written by Nikos Vaggalis   

Although version 4.2 is considered a minor update, it still packs a host of features focused mainly on productivity, including more advanced support for GitHub pull requests.

In trying to upgrade the experience of its users working with the IDE, it brings improvements to several such components like the Database Inspector, the Layout Inspector, the Systems Trace, the Apply Changes and Gradle.

Starting with the Database Inspector, its surface has now become larger and resizable and also indexes the SQL query history so that you can browse through all past executed queries.

On yet another Inspector component front, the Layout Inspector, a tool which updates the UI as you interact with the app, has now been updated with the added ability of disabling the live updates and instead refreshing manually whenever the user wants to.

Metrics for analyzing performance. Metrics such as the state of image buffers , CPU frequency by core and memory usage are now easier to track through a dedicated tab.

“Apply Changes”, a feature which lets you push code and resource changes without restarting your app, now also supports adding static final primitive fields.

On the Gradle side, Safe Args the Gradle plug-in that generates simple object and builder classes for type safe navigation, has been upgraded with autocompletion and code navigation from source to XML.

Also the Android Gradle plugin 4.2 now supports both APK v3 and APK v4 signing formats, adds a new resource compiler which improves build performance especially on Windows, and gets upgraded to Java programming language version 8.

The most useful update Gradle-wise, however, is the introduction of the Upgrade Assistant, a tool that allows previewing the changes before upgrading your project to the latest Android Gradle plugin :

The assistant allows you to toggle the commands that will be executed on your project to upgrade to a higher version of AGP, preview exactly which files will be affected by the AGP upgrade, and lastly globally update deprecated configurations.

Other enhancements in no particular order are that the multiple device deployment option has been brought back and the new project wizard became more user friendly.

Finally, Studio 4.2 gets all the updates that IntelliJ IDEA Community Edition 2020.2 brings, since Android Studio is based on Intellij. That includes more advanced support for GitHub pull requests and a new Inspections Widget that displays the number of warnings and errors in an opened file thus allowing for quickly navigating between them.

 

More Information

Android Developers – Android Studio 4.2

Related Articles

Android Studio 4.1 – No Relief In Sight

Love It or Hate It, Gradle Reaches Version 7.0

Introducing The Android Kotlin Developer Nanodegree

Android Jetpack Compose Is Welcome, But What About The Churn?

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.


RubyMine Adds Ruby3 RBS Support

19/04/2021

RubyMine 2021.1 has been released with improvements including Ruby 3.0 RBS support and better code completion. Other improvements include space integration and the inclusion of Code With Me.


+ Full Story


Microsoft Now Visionary Sponsor Of Python

03/05/2021

Microsoft has increased its existing support for the Python, becoming a Visionary Sponsor by making a $150K donation. The funds will be focused on the Packaging Working Group to help with develop [ … ]


+ Full Story

More News

Comments

or email your comment to: comments@i-programmer.info