BT

Facilitating the spread of knowledge and innovation in professional software development

Contribute

Topics

Choose your language

InfoQ Homepage News Android Studio 4.2 Includes Latest IntelliJ IDEA and Improves Developer Experience

Android Studio 4.2 Includes Latest IntelliJ IDEA and Improves Developer Experience

Bookmarks

The latest release of Android Studio brings its IntelliJ IDEA platform up-to-date and introduces a number of features aimed at improving developer experience. Android Studio 4.2 also includes a migration assistant to make it easier for developers to upgrade their projects and take advantage of the latest Android Gradle Plugin API.

The latest IntelliJ IDEA introduced many improvements in the areas of Java support, editor, version control, and third-party framework support.

In particular, IntelliJ IDEA 2020.2 fully supports Java 15, released last September, including Records, Sealed Classes, and Text Blocks. It also improves on-the-fly compiler hints and exception analysis, extends variable refactoring, and more. Speaking of version control, IntelliJ IDEA 2020.2 enables handling the entire GitHub PR workflow, from browsing and assigning PRs to merging them.

To make it easier for developers to adopt Android Studio 4.2, Google has created a new Android Gradle Plugin (AGP) Assistant which aims to simplify the process of migrating existing projects to AGP 4.2, included in the latest Android Studio.

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.

Android Gradle Plugin 4.2 improves resource compilation time, especially on Windows machines, and introduces support for the APK v3 and APK v4 signing formats.

The new assistant also aims to ease transition to the upcoming Android Gradle Plugin 7. AGP 7, currently in alpha, stabilizes a number of new APIs that were introduced experimentally in AGP 4.1 and 4.2, including the androidComponents blocks. AGP 7 also raises the minimum supported Java version to Java 11 and adopts semantic versioning, while also aligning its version number to Gradle's. So, AGP 7.x is meant to work along with Gradle 7.x and will not follow Android Studio's versioning.

Other notable changes in Android Studio 4.2 are a new Project Wizard and Module Wizard, database inspector improvements, better tracing support, improved system trace, and so on.

You can get the latest Android Studio either by upgrading your existing install or downloading it anew.

We need your feedback

How might we improve InfoQ for you

Thank you for being an InfoQ reader.

Each year, we seek feedback from our readers to help us improve InfoQ. Would you mind spending 2 minutes to share your feedback in our short survey? Your feedback will directly help us continually evolve how we support you.

Take the Survey

Rate this Article

Adoption
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

BT

Is your profile up-to-date? Please take a moment to review and update.

Note: If updating/changing your email, a validation request will be sent

Company name:
Company role:
Company size:
Country/Zone:
State/Province/Region:
You will be sent an email to validate the new email address. This pop-up will close itself in a few moments.