Android Studio 4.2

Posted by Jamal Eason, Product Supervisor, Android

Android logo

We’re excited to announce that Android Studio 4.2 is now obtainable to obtain within the secure launch channel. The main target areas for this launch is an upgraded IntelliJ platform and a handful of recent options centered round enhancing your productiveness as an Android app developer.

We all know typically upgrading your app undertaking to the newest model might be sophisticated. To handle this, we’ve a brand new app undertaking improve assistant in Android Studio 4.2 that makes it simpler emigrate your undertaking and to reap the benefits of the newest Android Gradle Plugin APIs. Moreover, we’ve added an entire vary of enhancements to the present options just like the Database Inspector, System Hint, SafeArgs help, Apply Modifications, the brand new undertaking wizard and extra. Should you use these options and you’re in search of the following secure model of Android Studio, you need to obtain Android Studio 4.2 at present!

Take a look at the record of recent options in Android Studio 4.2 beneath, organized by key developer flows.


  • IntelliJ Platform Replace – Android Studio 4.2 contains all the foremost options and updates present in IntelliJ IDEA Neighborhood Version 2020.2, which incorporates an up to date GitHub UI for pull requests, and new centralized issues window, and extra. Learn more.
  • Secure Args Help – Utilizing Secure Args is the advisable approach to make sure information encapsulation if you wish to cross information between two locations in your app when you’re utilizing the Jetpack Navigation part. With Android Studio 4.2, you now have code autocompletion for Instructions Args, and code navigation from supply to XML. Learn more.

    safe arfs support

    Secure Args Help

  • New Undertaking Wizard and Module Wizard Updates – This launch features a visible refresh to the brand new undertaking wizard to make it simpler to find Android machine sorts, plus we added ViewBinding to every of the templates as nicely. Moreover, we additionally made a visible replace to the brand new module wizards to make it simpler to grasp the number of module sorts you possibly can add to your app.

New Project Wizard

 New Module Wizard

New Undertaking Wizard & New Module Wizard


  • Database Inspector Enhancements – Managing and monitoring your in app database is simpler to do with the Database Inspector. On this launch we made a pair new enhancements. We added a brand new offline mode, so to nonetheless maintain inspecting your app’s databases after a course of disconnects, making it simpler to diagnose your app after a crash. And we added a useful question historical past choice as nicely.

Query History with the Database Inspector

Question Historical past with the Database Inspector

  • Retrace Command Line Software As a part of your app compilation course of, R8 obfuscates Kotlin and Java programming language code. This will make stack traces inconceivable to decipher since sorts and technique names are obfuscated and shortened to cut back the reminiscence footprint of your app. The Retrace command line instrument deobfuscates these names and recovers inlined frames utilizing a mapping.txt file, making stack traces comprehensible once more The brand new standalone instrument might be discovered at ./sdk/cmdline-tools/newest/bin/retrace. Learn more.


  • AGP Improve Assistant – Migrating your undertaking to the newest Android Gradle Plugin (AGP) can typically be tough particularly should you use deprecated APIs. To resolve this and to raised put together you for the transition to the Android Gradle Plugin 7.0, we created a brand new improve assistant. The assistant means that you can toggle the instructions that will probably be executed in your undertaking to improve to a better model of AGP, preview precisely which information will probably be affected by the AGP improve, and lastly globally replace deprecated configurations.

AGP Upgrade Assistant<

AGP Improve Assistant

  • Apply Modifications EnhancementsApply Changes enables you to push code and useful resource adjustments to your working app with out restarting your app. In Android Studio 4.2 we’ve expanded the variety of appropriate adjustments with Apply Modifications to incorporate including assets (which accounted for 23% of adjustments that wanted a full restart) and including static closing fields (e.g. constants) when working on an Android 11+ machine or emulator.
  • Android Gradle Plugin 4.2 – With AGP 4.2, we made numerous notable adjustments. First, we carried out a brand new assets compiler which ought to support in enhancing construct efficiency particularly on Home windows machines. Secondly, we’ve up to date the default Java programming language to model 8. Lastly, we added help for the APK v3 and APK v4 signing format. Be taught extra about further AGP updates here.
// construct.gradle.kts

android {
   signingConfigs {
      config {

APK v3 and APK v4 singing help

Take a look at

  • A number of Machine Deployment – Generally when you’re creating and testing your app it’s useful to deploy your app on a number of gadgets to see the outcomes. We introduced again this function from very early variations of Android Studio and built-in it instantly into the machine choice menu in Android Studio 4.2. To notice, should you deploy checks to a number of gadgets you might be prompted to allow this habits.

Multiple Device Deployment

A number of Machine Deployment


  • System Hint Enhancements – To know the fine-grained efficiency traits of your app, it helps to make use of the system trace features inside of the Android Studio profiers. With this launch of Android Studio, system hint now has a brand new occasions desk. With this new desk view you possibly can see; BufferQueue, RSS reminiscence counters, and CPU core frequency all inside a compact consumer interface.

    Profiler with new System Trace Events Table

    Profiler with new System Hint Occasions Desk

    To recap, Android Studio 4.2 contains these new enhancements & options:


    • IntelliJ 2020.2.3 Platform Replace
    • Secure Args Help
    • New Undertaking Wizard and Module Wizard Updates


    • Database Inspector Enhancements
    • Retrace Command Line Software


    • AGP Improve Assistant
    • Apply Modifications Enhancements
    • Android Gradle Plugin 4.2

    Take a look at

    • A number of Machine Deployment


    • System Hint Enhancements

    Take a look at the Android Studio release notes, Android Gradle plugin release notes, and the Android Emulator release notes for extra particulars.

Getting Began


Obtain the newest model of Android Studio 4.2 from the download page. If you’re utilizing a earlier launch of Android Studio, you possibly can merely replace to the newest model of Android Studio. If you wish to keep a secure model of Android Studio, you possibly can run the secure launch model and canary launch variations of Android Studio Arctic Fox on the similar time. Learn more.

We admire any suggestions on belongings you like, and points or options you wish to see. Should you discover a bug or subject, be happy to file an issue. Observe us — the Android Studio improvement staff ‐ on Twitter and on Medium.

Java is a registered trademark of Oracle and/or its associates.

Recent Articles

Gardening Pro Talks About the Many Advantages of Artificial Grass Gold Coast

Artificial grass may have been associated with a bad reputation before, but times have changed. Experts recommend the switch...

AT&T maintains 5G pace lead, however T-Cell is catching up: RootMetrics

Supply: Hayato Huseman / Android Central RootMetrics measures cellular community efficiency by testing the 125 most populated metros within the U.S. each six months and...

Niantic Will Launch AR Recreation Transformers: Heavy Metallic Later This 12 months

In Transformers: Heavy Metallic, you’ll staff up wit Bumblebee and the Autobots in the actual world. The sport will gentle launch in choose nations... proprietor Automattic acquires journaling app Day One – TechCrunch

Automattic is increasing its lineup of on-line writing platforms with its acquisition of Day One, a well-liked journaling app for Mac and Apple cellular...

Related Stories

Stay on op - Ge the daily news in your inbox