Google lately introduced Android Studio three.6, the newest model of its built-in construction surroundings (IDE), with a selected focal point on “addressing high quality in basically code enhancing and debugging use circumstances.” This unlock is the primary unlock since Challenge Marble, a complicated identify for an initiative Google introduced past due closing yr to make stronger Android Studio’s elementary options. Android three.6 introduces a small set of options, polishes current options, and addresses the standard insects and function enhancements.
The brand new unlock comes lower than per week after Google introduced Android 11 Developer Preview 1. Whilst builders can use different IDEs to construct on Android, the newest options arrive first in Android Studio. Model three.6 features a new option to temporarily design, increase, and preview app layouts the usage of XML. Google Maps is now built-in appropriate into the Android Emulator prolonged regulate panel so builders now not need to manually kind in GPS coordinates to check location options of their app. It’s additionally now more straightforward to optimize your app and to find insects with automated reminiscence leak detection for Fragments and Actions.
You’ll obtain Android Studio three.6 for Home windows, Mac, and Linux now at once from developer.android.com/studio. If you’re already the usage of Android Studio, you’ll get the newest model within the navigation menu (Assist => Take a look at for Replace on Home windows/Linux and Android Studio => Take a look at for Updates on OS X).
Google launched Android Studio three.five in August. The model quantity three.6 suggests this isn’t an important unlock, however if you happen to construct for Android, there could be options of be aware within the checklist underneath.
Android Studio three.6 options
Right here’s the rundown of what model three.6 brings to the desk:
Cut up view in design editors: Design editors, such because the Structure Editor and Navigation Editor, now supply a Cut up view that allows you to see each the Design and Code perspectives of your UI on the identical time. Cut up view replaces the Preview window and can also be configured on a file-by-file foundation to maintain context data like zoom issue and design view choices, so you’ll select the view that works very best for each and every use case. To allow break up view, click on the Cut up icon within the top-right nook of the editor window.
Colour picker useful resource tab: It’s now more straightforward to use colours you could have outlined as colour assets. The colour picker now populates the colour assets on your app for you to make a choice and exchange colour assets values. The colour picker is on the market within the design gear in addition to within the XML editor.
View binding: Means that you can extra simply write code that interacts with perspectives by means of offering compile-time protection when referencing perspectives on your code. When enabled, view binding generates a binding elegance for each and every XML structure dossier found in that module. Generally, view binding replaces findViewById. You’ll reference all perspectives that experience an ID without a possibility of null pointer or elegance solid exceptions. Those variations imply that incompatibilities between your structure and your code will consequence on your construct failing at bring together time relatively than at runtime.
Android NDK updates: In the past supported in Java, those options at the moment are additionally supported in Kotlin. You’ll navigate from a JNI declaration to the corresponding implementation serve as in C/C++ (View this mapping by means of soaring over the C or C++ merchandise marker close to the road quantity within the controlled supply code dossier). You’ll routinely create a stub implementation serve as for a JNI declaration (outline the JNI declaration first after which kind “jni: or the process identify within the C/C++ dossier to turn on).
IntelliJ Platform Replace: The IntelliJ 2019.2 platform unlock comprises many enhancements from a brand new services and products software window to a lot advanced startup instances.
Upload categories with Observe Adjustments: You’ll now upload a category after which deploy that code trade on your working app by means of clicking both Observe Code Adjustments or Observe Adjustments and Restart Job.
Android Gradle Plugin (AGP) updates: Give a boost to for the Maven Put up Gradle plugin, which lets you post construct artifacts to an Apache Maven repository. The Android Gradle plugin creates an element for each and every construct variant artifact on your app or library module that you’ll use to customise a newsletter to a Maven repository. Moreover, Android Gradle plugin has made important efficiency development for annotation processing/KAPT for massive tasks — AGP now generates R elegance bytecode at once, as a substitute of .java recordsdata.
New packaging software: The default packaging software has been modified to zipflinger for debug builds. You will have to see an development in construct pace, however you’ll additionally revert to the usage of the previous packaging software by means of atmosphere android.useNewApkCreator=false on your gradle.houses dossier.
Android Emulator – Google Maps UI: Android Emulator 29.2.12 features a new manner for app builders to interface with the emulated instrument location.The Google Maps person interface is embedded within the prolonged controls menu to assist you to specify places and in addition to build routes from pairs of places. Particular person issues can also be stored and re-sent to the instrument because the digital location, whilst routes can also be generated via typing in addresses or clicking two issues. Those routes can also be replayed in actual time as places alongside the direction are despatched to the visitor OS.
Multi-display reinforce: Emulator 29.1.10 comprises initial reinforce for a couple of digital shows. Customers can configure a couple of shows during the settings menu (Prolonged Controls > Settings).
Resumable SDK downloads: When downloading Android SDK elements and gear the usage of the Android Studio SDK Supervisor, Android Studio now means that you can resume downloads that have been interrupted as a substitute of restarting the obtain from the start.
In-place updates for imported APKs: Android Studio now routinely detects adjustments made an the imported APK dossier and will provide you with an technique to re-import it in-place. In the past, when adjustments to these APKs have been made, you would need to manually import them once more and reattach symbols and assets.
Leak detection in Reminiscence Profiler: The Reminiscence Profiler now has the facility to discover Job and Fragment cases which could have leaked. To get began, seize or import a heap unload dossier within the Reminiscence Profiler, and take a look at the Job/Fragment Leaks checkbox to generate the effects.
Deobfuscate elegance and way bytecode in APK Analyzer: When the usage of the APK Analyzer to investigate cross-check DEX recordsdata, you’ll now deobfuscate elegance and way bytecode. Whilst within the DEX dossier viewer, load the ProGuard mappings dossier for the APK you’re examining. When loaded, it is possible for you to to right-click at the elegance or way you wish to have to investigate cross-check by means of deciding on Display bytecode.
Android Studio three.6 additionally comprises the standard efficiency enhancements and insect fixes on height of the brand new options (complete unlock notes). Google didn’t percentage its plans for the following model, however we’re more likely to pay attention extra at its I/O 2020 builders convention in Might.