Google nowadays introduced Android Studio three.6, the newest model of its built-in building surroundings (IDE), with a particular center of attention on “addressing high quality in basically code modifying and debugging use instances.” This free up is the primary free up since Undertaking Marble, a complicated identify for an initiative Google introduced overdue ultimate 12 months to enhance Android Studio’s basic options. Android three.6 introduces a small set of options, polishes current options, and addresses the standard insects and function enhancements.
The brand new free up comes not up to every 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 approach to temporarily design, expand, and preview app layouts the use of XML. Google Maps is now built-in correct into the Android Emulator prolonged keep an eye on panel so builders now not must manually sort 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 be able to obtain Android Studio three.6 for Home windows, Mac, and Linux now immediately from developer.android.com/studio. If you’re already the use of Android Studio, you’ll get the newest model within the navigation menu (Assist => Test for Replace on Home windows/Linux and Android Studio => Test for Updates on OS X).
Google launched Android Studio three.five in August. The model quantity three.6 suggests this isn’t a vital free up, however for those who construct for Android, there may well be options of be aware within the record beneath.
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 lets you see each the Design and Code perspectives of your UI on the identical time. Cut up view replaces the Preview window and may also be configured on a file-by-file foundation to keep context data like zoom issue and design view choices, so you’ll make a selection the view that works highest for 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’ve gotten outlined as colour assets. The colour picker now populates the colour assets to your app for you to select and change colour assets values. The colour picker is offered within the design gear in addition to within the XML editor.
View binding: Permits you to extra simply write code that interacts with perspectives via offering compile-time protection when referencing perspectives to your code. When enabled, view binding generates a binding magnificence for every XML structure dossier found in that module. Generally, view binding replaces
findViewById. You’ll be able to reference all perspectives that experience an ID and not using a chance of null pointer or magnificence solid exceptions. Those variations imply that incompatibilities between your structure and your code will consequence to your construct failing at assemble time relatively than at runtime.
Android NDK updates: Up to now supported in Java, those options are actually additionally supported in Kotlin. You’ll be able to navigate from a JNI declaration to the corresponding implementation serve as in C/C++ (View this mapping via soaring over the C or C++ merchandise marker close to the road quantity within the controlled supply code dossier). You’ll be able to mechanically create a stub implementation serve as for a JNI declaration (outline the JNI declaration first after which sort “jni: or the process identify within the C/C++ dossier to turn on).
IntelliJ Platform Replace: The IntelliJ 2019.2 platform free up comprises many enhancements from a brand new services and products software window to a lot advanced startup occasions.
Upload categories with Observe Adjustments: You’ll be able to now upload a category after which deploy that code exchange in your operating app via clicking both Observe Code Adjustments or Observe Adjustments and Restart Process.
Android Gradle Plugin (AGP) updates: Fortify for the Maven Put up Gradle plugin, which lets you put up construct artifacts to an Apache Maven repository. The Android Gradle plugin creates an element for every construct variant artifact to your app or library module that you’ll use to customise a newsletter to a Maven repository. Moreover, Android Gradle plugin has made vital efficiency development for annotation processing/KAPT for enormous tasks — AGP now generates R magnificence bytecode immediately, as a substitute of .java recordsdata.
New packaging software: The default packaging software has been modified to zipflinger for debug builds. You must see an development in construct velocity, however you’ll additionally revert to the use of the previous packaging software via surroundings
android.useNewApkCreator=false to your gradle.houses dossier.
Android Emulator – Google Maps UI: Android Emulator 29.2.12 features a new means for app builders to interface with the emulated instrument location.The Google Maps consumer interface is embedded within the prolonged controls menu to aid you specify places and likewise to build routes from pairs of places. Particular person issues may also be stored and re-sent to the instrument because the digital location, whilst routes may also be generated thru typing in addresses or clicking two issues. Those routes may also be replayed in actual time as places alongside the path are despatched to the visitor OS.
Multi-display improve: Emulator 29.1.10 comprises initial improve for a couple of digital presentations. Customers can configure a couple of presentations throughout the settings menu (Prolonged Controls > Settings).
Resumable SDK downloads: When downloading Android SDK elements and gear the use 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 mechanically detects adjustments made an the imported APK dossier and will give you an approach to re-import it in-place. Up to now, when adjustments to these APKs have been made, you would need to manually import them once more and reattach symbols and assets.
Connect Kotlin assets to imported APKs: Fortify for attaching Kotlin supply recordsdata to imported APKs.
Leak detection in Reminiscence Profiler: The Reminiscence Profiler now has the power to hit upon Process and Fragment cases which can have leaked. To get began, seize or import a heap unload dossier within the Reminiscence Profiler, and take a look at the Process/Fragment Leaks checkbox to generate the consequences.
Deobfuscate magnificence and approach bytecode in APK Analyzer: When the use of the APK Analyzer to check up on DEX recordsdata, you’ll now deobfuscate magnificence and approach 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 magnificence or approach you wish to have to check up on via settling on Display bytecode.
Android Studio three.6 additionally comprises the standard efficiency enhancements and insect fixes on peak of the brand new options (complete free up notes). Google didn’t percentage its plans for the following model, however we’re more likely to listen extra at its I/O 2020 builders convention in Would possibly.