https://android-developers.googleblog.com/2021/05/android-studio-42.html * Jetpack Kotlin Docs News # Platform Android Studio Google Play Jetpack Kotlin Docs News # Platform Android Studio Google Play Jetpack Kotlin Docs News More # Android Developers Blog The latest Android and Google Play news for app and game developers. Android Studio 4.2 04 May 2021 [unnamed] Posted by Jamal Eason, Product Manager, Android Android logo We are excited to announce that Android Studio 4.2 is now available to download in the stable release channel. The focus areas for this release is an upgraded IntelliJ platform and a handful of new features centered around improving your productivity as an Android app developer. We know sometimes upgrading your app project to the latest version can be complicated. To address this, we have a new app project upgrade assistant in Android Studio 4.2 that makes it easier to migrate your project and to take advantage of the latest Android Gradle Plugin APIs. Additionally, we have added a whole range of enhancements to the existing features like the Database Inspector, System Trace, SafeArgs support, Apply Changes, the new project wizard and more. If you use these features and you are looking for the next stable version of Android Studio, you should download Android Studio 4.2 today! Check out the list of new features in Android Studio 4.2 below, organized by key developer flows. Develop * IntelliJ Platform Update - Android Studio 4.2 includes all the major features and updates found in IntelliJ IDEA Community Edition 2020.2, which includes an updated GitHub UI for pull requests, and new centralized problems window, and more. Learn more. * Safe Args Support - Using Safe Args is the recommended way to ensure data encapsulation if you want to pass data between two destinations in your app when you are using the Jetpack Navigation component. With Android Studio 4.2, you now have code autocompletion for Directions Args, and code navigation from source to XML. Learn more. safe arfs support Safe Args Support * New Project Wizard and Module Wizard Updates - This release includes a visual refresh to the new project wizard to make it easier to discover Android device types, plus we added ViewBinding to each of the templates as well. Furthermore, we also made a visual update to the new module wizards to make it easier to understand the variety of module types you can add to your app. New Project Wizard New Module Wizard New Project Wizard & New Module Wizard Debug * Database Inspector Improvements - Managing and monitoring your in app database is easier to do with the Database Inspector. In this release we made a couple new enhancements. We added a new offline mode, so that you can still keep inspecting your app's databases after a process disconnects, making it easier to diagnose your app after a crash. And we added a handy query history option as well. Query History with the Database Inspector Query History with the Database Inspector * Retrace Command Line Tool - As part of your app compilation process, R8 obfuscates Kotlin and Java programming language code. This can make stack traces impossible to decipher since types and method names are obfuscated and shortened to reduce the memory footprint of your app. The Retrace command line tool deobfuscates these names and recovers inlined frames using a mapping.txt file, making stack traces understandable again The new standalone tool can be found at ./sdk/cmdline-tools/latest/bin/retrace. Learn more. Build * AGP Upgrade Assistant - Migrating your project to the latest Android Gradle Plugin (AGP) can sometimes be tricky especially if you use deprecated APIs. To solve this and to better prepare you for the transition to the Android Gradle Plugin 7.0, we created a new upgrade assistant. 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. AGP Upgrade Assistant< AGP Upgrade Assistant * Apply Changes Enhancements - Apply Changes lets you push code and resource changes to your running app without restarting your app. In Android Studio 4.2 we have expanded the number of compatible changes with Apply Changes to include adding resources (which accounted for 23% of changes that needed a full restart) and adding static final fields (e.g. constants) when running on an Android 11+ device or emulator. * Android Gradle Plugin 4.2 - With AGP 4.2, we made a number of notable changes. First, we implemented a new resources compiler which should aid in improving build performance especially on Windows machines. Secondly, we have updated the default Java programming language to version 8. Lastly, we added support for the APK v3 and APK v4 signing format. Learn more about additional AGP updates here. // build.gradle.kts android { ... signingConfigs { config { ... enableV3Signing(true) enableV4Signing(true) } } } APK v3 and APK v4 singing support Test * Multiple Device Deployment - Sometimes when you are developing and testing your app it is helpful to deploy your app on multiple devices to see the results. We brought back this feature from very early versions of Android Studio and integrated it directly into the device selection menu in Android Studio 4.2. To note, if you deploy tests to multiple devices you may be prompted to enable this behavior. Multiple Device Deployment Multiple Device Deployment Profile * System Trace Improvements - To understand the fine-grained performance characteristics of your app, it helps to use the system trace features inside of the Android Studio profiers. With this release of Android Studio, system trace now has a new events table. With this new table view you can see; BufferQueue, RSS memory counters, and CPU core frequency all within a compact user interface. Profiler with new System Trace Events Table Profiler with new System Trace Events Table To recap, Android Studio 4.2 includes these new enhancements & features: Develop + IntelliJ 2020.2.3 Platform Update + Safe Args Support + New Project Wizard and 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 release notes, Android Gradle plugin release notes, and the Android Emulator release notes for more details. Getting Started Download Download the latest version of Android Studio 4.2 from the download page. If you are using a previous release of Android Studio, you can simply update to the latest version of Android Studio. If you want to maintain a stable version of Android Studio, you can run the stable release version and canary release versions of Android Studio Arctic Fox at the same time. Learn more. We appreciate any feedback on things you like, and issues or features you would like to see. If you find a bug or issue, feel free to file an issue. Follow us -- the Android Studio development team - on Twitter and on Medium. Java is a registered trademark of Oracle and/or its affiliates. Share on Twitter Share on Facebook Share by email Google Labels: Android , Android Studio , Android Studio 4.2 , androidstudio , Featured , latest [ ] [ncccFICB87] Labels * Android O * Android Studio * Design * Develop * Google Play Archive * May 2021 (1) * April 2021 (10) * March 2021 (12) * February 2021 (11) * January 2021 (3) * December 2020 (7) * November 2020 (7) * October 2020 (7) * September 2020 (9) * August 2020 (18) * July 2020 (18) * June 2020 (18) * May 2020 (4) * April 2020 (7) * March 2020 (9) * February 2020 (9) * January 2020 (3) * December 2019 (8) * November 2019 (12) * October 2019 (11) * September 2019 (5) * August 2019 (9) * July 2019 (8) * June 2019 (6) * May 2019 (15) * April 2019 (10) * March 2019 (11) * February 2019 (5) * January 2019 (6) * December 2018 (11) * November 2018 (9) * October 2018 (13) * September 2018 (5) * August 2018 (13) * July 2018 (9) * June 2018 (16) * May 2018 (16) * April 2018 (8) * March 2018 (8) * February 2018 (7) * January 2018 (9) * December 2017 (9) * November 2017 (13) * October 2017 (14) * September 2017 (11) * August 2017 (19) * July 2017 (11) * June 2017 (13) * May 2017 (21) * April 2017 (12) * March 2017 (14) * February 2017 (11) * January 2017 (12) * December 2016 (17) * November 2016 (16) * October 2016 (9) * September 2016 (6) * August 2016 (7) * July 2016 (12) * June 2016 (14) * May 2016 (16) * April 2016 (14) * March 2016 (8) * February 2016 (8) * January 2016 (9) * December 2015 (9) * November 2015 (13) * October 2015 (19) * September 2015 (15) * August 2015 (13) * July 2015 (9) * June 2015 (8) * May 2015 (10) * April 2015 (10) * March 2015 (12) * February 2015 (8) * January 2015 (3) * December 2014 (9) * November 2014 (13) * October 2014 (11) * September 2014 (6) * August 2014 (2) * July 2014 (9) * June 2014 (10) * May 2014 (4) * March 2014 (4) * February 2014 (3) * January 2014 (2) * December 2013 (3) * November 2013 (2) * October 2013 (7) * September 2013 (2) * August 2013 (5) * July 2013 (5) * June 2013 (4) * May 2013 (9) * April 2013 (3) * March 2013 (2) * February 2013 (3) * January 2013 (3) * December 2012 (5) * November 2012 (3) * October 2012 (3) * September 2012 (1) * August 2012 (1) * July 2012 (2) * June 2012 (5) * May 2012 (1) * April 2012 (5) * March 2012 (5) * February 2012 (5) * January 2012 (5) * December 2011 (7) * November 2011 (7) * October 2011 (5) * September 2011 (5) * August 2011 (3) * July 2011 (7) * June 2011 (2) * May 2011 (5) * April 2011 (6) * March 2011 (8) * February 2011 (8) * January 2011 (4) * December 2010 (8) * November 2010 (3) * October 2010 (4) * September 2010 (7) * August 2010 (6) * July 2010 (10) * June 2010 (11) * May 2010 (11) * April 2010 (2) * March 2010 (3) * February 2010 (2) * January 2010 (5) * December 2009 (7) * November 2009 (5) * October 2009 (5) * September 2009 (8) * August 2009 (2) * July 2009 (1) * June 2009 (2) * May 2009 (5) * April 2009 (12) * March 2009 (5) * February 2009 (8) * January 2009 (3) * December 2008 (3) * November 2008 (1) * October 2008 (4) * September 2008 (6) * August 2008 (4) * June 2008 (1) * May 2008 (5) * April 2008 (4) * March 2008 (5) * February 2008 (2) * January 2008 (5) * December 2007 (3) * November 2007 (5) # [rss_feed_g] Feed [news_grey6] Newsletter Android Developers Android Developers on YouTube Android Developers on Twitter Google Play Google Play Apps & Games on LinkedIn Google Play Apps & Games on Medium Follow GooglePlayDev on Twitter Global Google developer blogs Google Developers Blog Programa con Google (Spanish LATAM) Codigo (Portuguese LATAM) Developers Italia Google Developers Indonesia Blog Google Developers Korea Google Developers Japan * Privacy | * License | * Brand guidelines Get news and tips by email Subscribe