Posted by Jamal Eason, Product Manager, Android

Android logo

We are thrilled to introduce that Android Studio 4.2 is currently offered to download and install in the secure launch network. The emphasis locations for this launch is an updated IntelliJ system as well as a handful of brand-new functions focused around enhancing your performance as an Android application programmer.

We understand in some cases updating your application task to the most up to date variation can be made complex. To address this, we have a brand-new application task upgrade aide in Android Studio 4.2 that makes it much easier to move your task as well as to make use of the most up to date Android Gradle Plugin APIs. Additionally, we have actually included an entire variety of improvements to the existing functions like the Database Inspector, System Trace, SafeArgs assistance, Apply Changes, the brand-new task wizard as well as even more. If you make use of these functions as well as you are trying to find the following secure variation of Android Studio, you need to download and install Android Studio 4.2 today!

Check out the checklist of brand-new functions in Android Studio 4.2 listed below, arranged by vital programmer circulations.

Develop

  • IntelliJ Platform Update – Android Studio 4.2 consists of all the significant functions as well as updates located in IntelliJ CONCEPT Community Edition 2020.2, that includes an upgraded GitHub UI for pull demands, as well as brand-new central issues home window, as well as much more. Learn much more.
  • Safe Args Support – Using Safe Args is the advisable means to make certain information encapsulation if you wish to pass information in between 2 locations in your application when you are utilizing the Jetpack Navigation element. With Android Studio 4.2, you currently have code autocompletion for Directions Args, as well as code navigating from resource to XML. Learn much more.

    safe arfs support

    Safe Args Support

  • New Project Wizard as well as Module Wizard Updates – This launch consists of an aesthetic refresh to the brand-new task wizard to make it much easier to find Android gadget kinds, plus we included ViewBinding to every of the design templates also. Furthermore, we additionally made an aesthetic upgrade to the brand-new component wizards to make it much easier to recognize the range of component kinds you can contribute to your application.

New Project Wizard

 New Module Wizard

New Project Wizard & New Module Wizard

Debug

  • Database Inspector Improvements – Managing as well as checking your in application data source is much easier to do with the Database Inspector. In this launch we made a couple brand-new improvements. We included a brand-new offline setting, to make sure that you can still maintain evaluating your application’s data sources after a procedure detaches, making it much easier to identify your application after a collision. And we included a convenient inquiry background choice also.

Query History with the Database Inspector

Query History with the Database Inspector

  • Retrace Command Line Tool As component of your application collection procedure, R8 obfuscates Kotlin as well as Java shows language code. This can make pile traces difficult to analyze because kinds as well as approach names are obfuscated as well as reduced to lower the memory impact of your application. The Retrace command line device deobfuscates these names as well as recuperates inlined frameworks utilizing a mapping.txt data, making pile traces reasonable once again The brand-new standalone device can be located at ./sdk/cmdline-tools/latest/bin/retrace. Learn much more.

Build

  • AGP Upgrade Assistant – Migrating your task to the most up to date Android Gradle Plugin (AGP) can in some cases be difficult specifically if you make use of deprecated APIs. To fix this as well as to far better prepare you for the shift to the Android Gradle Plugin 7.0, we developed a brand-new upgrade aide. The aide enables you to toggle the commands that will certainly be implemented on your task to update to a greater variation of AGP, sneak peek specifically which documents will certainly be impacted by the AGP upgrade, as well as finally worldwide upgrade deprecated arrangements.

AGP Upgrade Assistant<

AGP Upgrade Assistant

  • Apply Changes Enhancements – Apply Changes allows you press code as well as source modifications to your running application without rebooting your application. In Android Studio 4.2 we have actually increased the variety of suitable modifications with Apply Changes to consist of adding sources (which made up 23% of modifications that required a complete reboot) as well as including fixed last areas (e.g. constants) when operating on an Android 11+ gadget or emulator.
  • Android Gradle Plugin 4.2 – With AGP 4.2, we made a variety of remarkable modifications. First, we applied a brand-new sources compiler which need to assist in enhancing develop efficiency specifically on Windows equipments. Secondly, we have actually upgraded the default Java shows language to variation 8. Lastly, we included assistance for the APK v3 as well as APK v4 finalizing layout. Learn much more regarding extra AGP updates below.
// build.gradle.kts

android {
   ...
   signingConfigs {
      config {
          ...
          enableV3Signing(real)
          enableV4Signing(real)
      }
   }
}

APK v3 as well as APK v4 vocal singing assistance

Test

  • Multiple Device Deployment – Sometimes when you are creating as well as examining your application it is handy to release your application on numerous tools to see the outcomes. We revived this attribute from really early variations of Android Studio as well as incorporated it straight right into the gadget choice food selection in Android Studio 4.2. To note, if you release examinations to numerous tools you might be motivated to allow this actions.

Multiple Device Deployment

Multiple Device Deployment

Profile

  • System Trace Improvements – To recognize the fine-grained efficiency features of your application, it assists to make use of the system trace includes within the Android Studio profiers. With this launch of Android Studio, system trace currently has a brand-new occasions table. With this brand-new table sight you can see; BufferQueue, RSS memory counters, as well as CPU core regularity all within a portable interface.

    Profiler with new System Trace Events Table

    Profiler with brand-new System Trace Events Table

    To wrap-up, Android Studio 4.2 consists of these brand-new improvements & functions:

    Develop

    • IntelliJ 2020.2.3 Platform Update
    • Safe Args Support
    • New Project Wizard as well as Module Wizard Updates

    Debug

    • Database Inspector Improvements
    • Retrace Command Line Tool

    Build

    • AGP Upgrade Assistant
    • Apply Changes Enhancements
    • Android Gradle Plugin 4.2

    Test

    • Multiple Device Deployment

    Profile

    • System Trace Improvements

    Check out the Android Studio launch notes, Android Gradle plugin launch notes, as well as the Android Emulator launch notes for even more information.

Getting Started

Download

Download the most up to date variation of Android Studio 4.2 from the download web page. If you are utilizing a previous launch of Android Studio, you can merely upgrade to the most up to date variation of Android Studio. If you wish to keep a steady variation of Android Studio, you can run the secure launch variation as well as canary launch variations of Android Studio Arctic Fox at the very same time. Learn much more.

We value any type of comments on points you like, as well as problems or functions you want to see. If you locate a pest or concern, do not hesitate to submit a concern. Follow us — the Android Studio growth group ‐ on Twitter as well as on Medium.

Java is a signed up hallmark of Oracle and/or its associates.