Tuesday, October 16, 2018

Android Studio 3.2 Canary

Today at Google I/O 2018 nosotros announced the latest preview of Android Studio 3.2 which includes an exciting laid of features that back upwards the Android P Developer Preview, the novel Android App Bundle, as well as Android Jetpack. Download Android Studio 3.2 from our canary release channel today to explore ane of the most characteristic rich releases of the year.

Android Jetpack is a laid of libraries, developer tools as well as architectural guidance to aid teach far quick as well as tardily to build neat Android apps. It provides mutual infrastructure code thence yous tin focus on what makes your app unique. Android Studio 3.2 includes a broad laid of tools that back upwards Jetpack from a visual Navigation Editor that uses the Navigation API, templates for Android Slices APIs, to refactoring tools to migrate to the novel Android back upwards libraries inwards Jetpack — AndroidX.

The canary fourteen release of Android Studio 3.2 also supports the novel Android app model that is the evolution of the APK format, the Android App Bundle. With no code changes, Android Studio 3.2 volition aid yous create a novel Android App Bundle as well as stimulate got it prepare for publishing on Google Play.

There are xx major features inwards this release of Android Studio spanning from ultra fast Android Emulator Snapshots, Sample Data inwards the Layout Editor, to a create novel Energy Profiler to stair out battery comport upon of your app. If whatever of these features sound interesting, download the preview of Android Studio 3.2 today.

To meet these features demoed inwards activity as well as to teach a sneak peak at other features nosotros are working on, depository fiscal establishment stand upwards for out the Google I/O 2018 session - What's novel inwards Android Development Tools.

What’s novel inwards Android Development Tools - Google I/O 2018

Below is a total listing of novel features inwards Android Studio 3.2, organized yesteryear substitution developer flows.

Develop

  • Navigation Editor - As a role of Jetpack, Android Studio 3.2 features a novel means to pattern the navigational construction betwixt the screens of your app. The navigation editor is a visual editor which allows yous to create XML resources that back upwards using the novel Navigation Component inwards Jetpack.

Navigation Editor



  • AndroidX Refactoring Support - One of the components of Jetpack is rethinking as well as refactoring the Android Support Libraries to a novel Android extension library (AndroidX) namespace. As a role of the early on preview of the AndroidX, Android Studio 3.2 helps yous through this migration alongside a novel refactoring action. To utilisation the feature, navigate to: RefactorRefactor to AndroidX. As an additional enhancement to the refactoring process, if yous stimulate got whatever maven dependencies that stimulate got non migrated to the AndroidX namespace, the Android Studio build organisation volition automatically convert those projection dependencies every bit well. You tin manually command the conversion procedure yesteryear toggling the android.enableJetifier = true flag inwards your gradle.properties file. While the refactoring activity supports mutual projection configurations, nosotros recommend that yous salvage a backup of your projection earlier yous refactor. Learn more.

AndroidX Refactoring Support



  • Sample Data - Many Android layouts stimulate got runtime information that tin teach far hard to visualize the expect as well as experience of a layout during the pattern phase of app development. Sample Data inwards the Layout Editor allows yous to utilisation placeholder information to assistance inwards the pattern of your app. From RecyclerView, ImageView to TextView, yous tin add together built-in sample information to populate these views via a popup-window inwards the Layout Editor. To campaign out the feature, add together a RecyclerView to a novel layout, as well as and thence click on the novel tools design-time attributes icon as well as conduct a choice out of the carousel of sample information templates.

Design Time Sample Data



  • Material Design Update - Material Design continues to evolve non solely every bit a pattern organisation simply also inwards implementation on Android. When yous starting fourth dimension migrating from the Android Design back upwards library to the novel MaterialComponents app subject as well as library, Android Studio 3.2 volition offering yous access to novel as well as updated widgets such every bit BottomAppBar, buttons, cards, text fields, novel font styles as well as more. Learn more.

New Material Design Components



  • Slices back upwards - Slices is a novel means to embed portions of your app content inwards other user interface surfaces inwards the Android operating system. Slices is backwards compatible to Android 4.4 KitKat (API 19) as well as volition enable yous to surface app content inwards Google Search suggestions. Android Studio 3.2 has a built inwards template to aid yous extend your app alongside the novel Slice Provider APIs every bit good every bit novel lint checks to ensure that you're next best practices when constructing the slices. To teach started right-click on a projection folder, as well as navigate to NewOtherSlice Provider. Learn how to exam your piece interactions yesteryear checking out the getting started guide.

Slices Provider Template



  • CMakeList Editing Support - Android Studio supports CMake build scripts for your app's C/C++ code. With this release of Android Studio 3.2, code completion as well as syntax highlighting instantly industrial plant on mutual CMakeList commands.

CMakeList Code Completion



  • What's New Assistant - Android Studio 3.2 has a novel assistant panel that opens automatically after an update to inform yous virtually the latest changes to the IDE. You tin also opened upwards the panel yesteryear navigating to Help → What's New inwards Android Studio.

What's New Assistant



  • IntelliJ Platform Update - Android Studio 3.2 includes the IntelliJ 2018.1 platform release, which has many novel features such every bit information menstruum analysis, partial Git commits support, as well as a ton of novel code analysis enhancements. Learn more.

Build

  • Android App Bundle- The Android App Bundle is the novel app publishing format designed to aid yous deliver smaller APKs to your users. Google Play has a novel Dynamic Delivery platform that accepts your Android App Bundle, as well as delivers solely the APKs that yous bespeak on a specific device. Android Studio 3.2 enables yous to create as well as exam an Android App Bundle. As long every bit yous are running the latest Android Gradle plugin (com.android.tools.build:gradle:3.2.0-alpha14), yous tin rebuild your code every bit an app packet as well as teach the do goodness of smaller APKs based on language, enshroud density, as well as ABIs alongside no changes to your app code. To teach started, navigate to Build Build Bundle / APK or BuildGenerate Signed Bundle / APK Learn more.

Build Android App Bundle



  • D8 Desugaring - In about cases, novel Java Language features require novel bytecodes as well as linguistic communication APIs, soundless older Android devices may non back upwards these features. Desugaring allows yous to utilisation these features on older devices yesteryear replacing novel bytecodes as well as linguistic communication APIs alongside older ones during the build process. Desugaring was initially introduced alongside Android Studio 3.0 every bit a kind tool, as well as inwards Android Studio 3.1, nosotros integrated the desugaring stair into the D8 tool every bit an experimental feature, reducing overall build time. Now D8 desugaring is turned on yesteryear default for Android Studio 3.2. You tin yous tin instantly utilisation most of the latest linguistic communication changes spell targeting older devices.
  • R8 Optimizer - During the app build process, Android Studio historically used ProGuard to optimize as well as shrink Java linguistic communication bytecode. Starting alongside Android Studio 3.2, nosotros are starting the transition to utilisation R8 every bit a replacement to ProGuard. To experiment alongside R8, add together android.enableR8=true to your gradle.properties file. R8 is soundless experimental, thence nosotros do non recommend publishing your app using R8 yet. Learn more.

Enable R8 inwards Android Studio


Test

  • Emulator Snapshots - With Quickboot inwards the Android Emulator nosotros enabled yous to launch the emulator inwards nether vi seconds. With Android Studio 3.2 nosotros stimulate got extended this characteristic to enable yous to create snapshots at whatever emulator dry reason as well as starting fourth dimension them iun nether two seconds. When testing as well as developing your app, yous tin pre-configure an Android Virtual Device (AVD) snapshot alongside the presets, apps, information as well as settings that yous desire in-place, as well as repeatedly teach dorsum to the same snapshot. Snapshots charge inwards nether two seconds as well as yous tin launch to specific snapshots from the Android Emulator Extended Controls panel, the command-line ( ./adb emu avd snapshot charge snap_2018-04-29_00-01-12 ) or from within Android Studio.

Android Emulator Snapshots



  • Screen Record inwards Android Emulator - Normally creating a enshroud recording of your app enshroud would solely move for Android 4.4 KitKat (API 19) as well as higher upwards alongside no audio, alongside express Android Emulator support. With the latest Android Emulator (v27.3+), yous tin bring enshroud recordings on whatever API score alongside audio. Plus, at that topographic point is a built-in conversion to output to GIF as well as WebM. You tin trigger the novel enshroud tape characteristic via the Android Emulator Extended Controls panel, command line ( ./adb emu screenrecord starting fourth dimension --time-limit 10 /sample_video.webm ), as well as from Android Studio.

Screen tape inwards Android Emulator



  • Virtual Scene Camera for Android Emulator - Developing as well as testing apps alongside ARCore is instantly fifty-fifty easier alongside the novel Virtual Scene camera, which allows yous to iterate on your augmented reality (AR) experience within a virtual environment. The emulator is calibrated to move alongside ARCore APIs for AR apps as well as allows yous to inject virtual scene bitmap images. The virtual scene photographic television set camera tin also survive used every bit a regular HAL3 compatible camera. Open the built-in Android photographic television set camera app within the Android Emulator to teach started. By default, the novel virtual scene photographic television set camera is the nurture photographic television set camera for novel Android Virtual Devices created alongside Android Studio 3.2. Learn more.

Virtual Scene Camera inwards Android Emulator



  • ADB Connection Assistant - To aid troubleshoot your Android device connections via ADB, Android Studio 3.2 has a novel assistant. The ADB Connection Assistant walks yous through mutual troubleshooting steps to connect your Android device to your evolution machine. You tin trigger the assistant from the Run Dialogue box or yesteryear navigating to ToolsConnection Assistant .

ADB Connection Assistant



Optimize

  • Energy Profiler - Battery life is a substitution job concern for many telephone users, as well as your app may comport upon battery life to a greater extent than than yous realize. The novel Energy Profiler inwards the surgery profiler suite tin aid yous sympathize the loose energy comport upon of your app on an Android device. You tin instantly visualize the estimated loose energy usage of organisation components, plus inspect background events that may contribute to battery drain. To utilisation the loose energy profiler, ensure yous are connected to an Android device or emulator running Android 8.0 Oreo (API 26) or higher. Learn more.

Energy Profiler

  • System Trace - The novel System Trace characteristic inwards the CPU Profiler allows yous to inspect how your app interacts alongside organisation resources inwards fine-grained detail. Inspect exact timings as well as durations of your thread states, visualize where your CPU bottlenecks are across all cores, as well as add together custom line events to analyze. To utilisation organisation trace, starting fourth dimension profiling your app, click into the CPU Profiler, as well as and thence conduct the System Trace recording configuration. Learn more.

System Trace

  • Profiler Sessions - We instantly automatically salvage Profiler information every bit "sessions" to revisit as well as inspect later on spell yous stimulate got Android Studio open. We've also added the might to import as well as export your CPU recordings as well as heap dumps for later on analysis or inspection alongside other tools.

Profiler Sessions



  • Automatic CPU Recording - You tin instantly automatically tape CPU activity using the Debug API. After yous deploy your app to a device, the profiler automatically starts recording CPU activity when your app calls startMethodTracing(String tracePath), as well as stops recording when your app calls stopMethodTracing(). Similarly, yous tin also instantly automatically starting fourth dimension recording CPU activity on app start-up yesteryear enabling this alternative inwards your run configuration.
  • JNI Reference Tracking - For those of yous who stimulate got C/C++ code inwards your Android app, Android Studio 3.2 instantly allows yous to inspect the retention allocations of your JNI code inwards the Memory Profiler. As long every bit yous deploy your app to a device running Android 8.0 Oreo (API 26) as well as higher, yous tin drill downwards into the allotment telephone band stack from your JNI reference. To utilisation the feature, starting fourth dimension a retention profiler session, as well as select the JNI Heap from the Live Allocation drop-down menu.

JNI Reference Tracking

To recap, the latest canary of Android Studio 3.2 includes these novel major features:

Develop
  • Navigation Editor
  • AndroidX Refactoring
  • Sample Data
  • Material Design Update
  • Android Slices
  • CMakeList editing
  • What's New Assistant
  • New Lint Checks
  • Intellij Platform Update


Build

  • Android App Bundle
  • D8 Desugaring
  • R8 Optimizer


Test
  • Android Emulator Snapshots
  • Screen Record inwards Android Emulator
  • Virtual Scene Android Emulator Camera
  • ADB Connection Assistant


Optimize

  • Energy Profiler
  • System Trace
  • Profiler Sessions
  • Automatic CPU Recording
  • JNI Reference Tracking


Check out the preview release notes for to a greater extent than details.

Getting Started

Download

Download the latest version of Android Studio 3.2 from the canary channel download page. If yous are using a previous canary release of Android Studio, create certain yous update to Android Studio Canary fourteen or higher. If yous desire to keep a stable version of Android Studio, yous tin run the stable release version as well as canary release versions of Android Studio at the same time. Learn more.

To utilisation the mentioned Android Emulator features create certain yous are running at to the lowest degree Android Emulator v27.3+ downloaded via the Android Studio SDK Manager.

We appreciate whatever early on feedback on things yous like, as well as issues or features yous would similar to see. Please note, to ensure nosotros keep production quality, the features yous meet inwards the canary channel may non survive available inwards the side yesteryear side stable release channel until they are prepare for stable usage. If yous detect a põrnikas or issue, experience costless to file an issue. Connect alongside us -- the Android Studio evolution squad ‐ on our Google+ page or on Twitter.

Related Post

Android Studio 3.2 Canary
4/ 5
Oleh