Wednesday, October 3, 2018

Android Studio 3.2

Posted past times Jamal Eason, Product Manager, Android

Today, Android Studio 3.2 is available for Android Studio at Google I/O '18, nosotros lead hold refined together with polished 20+ novel features together with focused our efforts on improving the character for this stable release of Android Studio 3.2.

Every developer should utilization Android Studio 3.2 to transition to using an Android App Bundle, the novel app publishing format. With really minimal work, you lot tin generate an app packet alongside Android Studio. Once you lot upload your app packet to Google Play you lot tin distribute smaller, optimized apps to your users. Early adopters lead hold already seen betwixt 11% - 64% inward app size savings alongside app bundles over the legacy APK app size.

Another characteristic you lot do non desire to immature lady is the Energy Profiler. This novel profiler gives you lot a laid of tools that volition aid you lot diagnose together with improve the unloosen energy demeanour on of your app. Better device battery life is ane of the exceed most user requests, together with alongside the Energy Profiler inward Android Studio 3.2, you lot tin do your purpose inward improving device battery life past times making certain your app is using the correct amount of unloosen energy at the correct time.

Lastly, you lot should also banking concern represent out the novel Android Emulator Snapshots feature. By using this feature, you lot tin chop-chop lead hold a snapshot of the electrical flow land of your emulator which includes the electrical flow land of the screen, apps, together with settings. You tin resume or kick into your emulator snapshot inward nether two seconds. For whatever app developer looking for super- fast kick times, or seeking to run tests inward a predictable Android environment, Android Emulator Snapshots is a game changing characteristic for app evolution

On exceed of these major features, at that spot are twenty novel features addition many under-the-hood character refinements inward Android Studio 3.2. By using Android Studio 3.2, you lot tin also educate for the latest technologies ranging from Android Jetpack, to the latest inward Google Artificial Intelligence (AI) APIs alongside Android Slices.

Thank you lot to those who gave your early on feedback on both the canary together with beta releases. Your feedback helped us improve the character together with features inward Android Studio 3.2. If you lot are create for the adjacent stable release, together with desire to utilization a novel laid of productivity features, Android Studio 3.2 is create to download for you lot to larn started.

Below is a total listing of novel features inward Android Studio 3.2, organized past times primal developer flows.

Develop

  • Slices back upwards - Slices is a novel agency to tap into the built-in Android AI capabilities past times surfacing app content inward Google Search suggestions together with the Google Assistant. Android Studio 3.2 has a built-in template to aid you lot extend your app alongside the novel Slice Provider APIs equally good equally novel lint checks to ensure that you're next best practices when constructing the slices. To use, right-click on a projection folder, together with navigate to NewOtherSlice Provider. Learn more.

Slices Provider Template

  • Sample Data - This characteristic allows you lot to utilization placeholder information to assist inward the blueprint of your app. This volition aid you lot visualize layouts that depend on runtime data. You tin add together built-in sample information to populate views such equally RecyclerViews, ImageViews, together with TextViews via a popup-window inward the Layout Editor. Learn more.
  • Material Design Update - When you lot showtime migrating from the Android Design back upwards library to the novel MaterialComponents app theme together with library, Android Studio 3.2 volition offering you lot access to novel together with updated widgets such equally BottomAppBar, buttons, cards, text fields, novel font styles together with more. Learn more.
  • CMakeList Editing Support - For those using C/C++ inward their app, Android Studio has improve back upwards for CMake. With this release of Android Studio 3.2, code completion together with syntax highlighting similar a shot industrial plant on mutual CMakeList build script commands.
  • What's New Assistant - Android Studio 3.2 has a novel assistant panel that opens automatically after an update to inform you lot near the latest changes to the IDE. You tin also opened upwards the panel past times navigating to Help → What's New inward Android Studio.
  • AndroidX Refactoring Support - One of the components of Android Jetpack is the introduction of the Android extension libraries (AndroidX) equally a replacement for the Android Support Libraries. To add AndroidX to a novel project you lot simply postulate to add together android.useAndroidX=true to your gradle.properties file. Additionally, Android Studio 3.2 has a novel built-in refactoring activity to aid migrate your projection the novel namespace together with dependencies. Also if you lot lead hold whatever Maven dependencies that lead hold non migrated to the AndroidX namespace, the Android Studio build arrangement volition automatically convert those projection dependencies equally well. Learn more.
  • IntelliJ Platform Update - Android Studio 3.2 includes the IntelliJ 2018.1.6 platform release. This IntelliJ release adds many improvements to dataflow analysis, debugging, novel inspections, inline external annotations, partial Git commits, addition much more. Learn more.
  • Kotlin Update - Android Studio 3.2 bundles Kotlin 1.2.61, alongside back upwards for the Kotlin-friendly Android nine Pie SDK. Learn more.

Build

  • Android App Bundle - The Android App Bundle is the novel app publishing format designed to aid you lot deliver smaller APKs to your users together with trim back download size of your app. Google Play's novel app serving model, called Dynamic Delivery, processes your app packet to generate together with serve optimized APKs for each user's device configuration, hence they download exclusively the code together with resources they postulate to run your app. With Android Studio 3.2 or via the command line, you lot tin easily build your code equally an app packet together with larn the do goodness of smaller APKs based on language, covert density, together with ABIs alongside no changes to your app code. Learn more.

Build Android App Bundle

  • D8 Desugaring - In approximately cases, novel Java Language features require novel bytecodes together with linguistic communication APIs. However, older Android devices may non back upwards these features. Desugaring allows you lot to utilization these features on older devices past times replacing novel bytecodes together with linguistic communication APIs alongside older ones during the build process. D8 desugaring is turned on past times default for Android Studio 3.2 together with you lot tin similar a shot utilization most of the latest linguistic communication changes patch targeting older devices.
  • R8 Optimizer - Starting alongside Android Studio 3.2, nosotros are starting the transition to utilization R8 equally a replacement for ProGuard to optimize together with shrink Java linguistic communication bytecode. R8 is however experimental, hence nosotros do non recommend publishing your app using R8 yet, but it is a skillful fourth dimension to laissez passer the Android Studio squad early on feedback hence nosotros tin brand whatever adjustments before R8 fully replaces ProGuard. Learn more.

Test

  • Emulator Snapshots - The latest release of the Android Emulator allows you lot to create a snapshot of the electrical flow land of your emulator together with kick upwards together with switch into whatever snapshot inward nether two seconds. Built upon the Android Emulator Quickboot feature, Android Snapshots are fifty-fifty faster to salvage together with charge alongside this stable release due to under-the-hood speed enhancements. When testing together with developing your app, Android snapshots allow you lot to pre-configure an Android Virtual Device (AVD) snapshot alongside the presets, apps, information together with settings that you lot desire in-place, together with repeatedly become dorsum to the same snapshot. Learn more.

Android Emulator Snapshots

  • Microsoft® Hyper-V™ Support - You tin similar a shot run the Android Emulator on Windows® 10 computers that lead hold Hyper-V enabled. Intel HAXM is however the default hypervisor for the fastest Android Emulator experience. However,thanks to recent opened upwards source contributions past times Microsoft, together with the add-on of the novel Windows Hypervisor Platform (WHPX) API, the Android Emulator tin coexist alongside other Hyper-V-backed applications, similar local Virtual Machines, using the novel Hyper-V Support. Learn more.
  • AMD® Processor Support - AMD Processors are similar a shot supported past times the Android Emulator on Windows 10. Previously running the Android Emulator was express to tiresome software emulation when running Windows, but developers who lead hold an AMD processor tin similar a shot lead hold hardware accelerated performance. Learn more.
  • Screen Record inward Android Emulator - You tin similar a shot tape both covert together with sound on whatever Android API score alongside the novel covert tape characteristic inward the Android Emulator. In the past, covert recording on a physical Android device exclusively worked on Android 4.4 KitKat (API 19) together with higher upwards alongside no audio, alongside express Android Emulator support. With the latest Android Emulator (v28.0.+) you lot no longer lead hold this restriction. As an added bonus, at that spot is a built-in conversion to output to GIF together with WebM. You tin trigger the novel covert tape characteristic via the Android Emulator Extended Controls panel, dominance line together with from Android Studio. Lean to a greater extent than
  • Virtual Scene Camera for Android Emulator - The novel Virtual Scene photographic television set camera inward the Android Emulator helps you lot to educate for ARCore, Google's platform for edifice augmented reality experiences. The emulator is calibrated to function alongside ARCore APIs for AR apps together with also allows you lot to inject virtual scene bitmap images. The virtual scene photographic television set camera tin also travel used equally a regular HAL3 compatible camera. Learn more.
  • ADB Connection Assistant - Android Studio 3.2 has a novel assistant arrangement to aid troubleshoot your Android ADB device connections issues. The ADB Connection Assistant walks you lot through mutual troubleshooting steps to connect your Android device to your evolution machine. You tin trigger the assistant from the Run dialog box or past times navigating to ToolsConnection Assistant . Learn more.

Optimize

  • Energy Profiler - Battery life is a primal line organisation for many telephone users, together with your app may demeanour on battery life to a greater extent than than you lot realize. The novel Energy Profiler inward the Android Studio functioning profiler suite tin aid you lot sympathise the unloosen energy demeanour on of your app on an Android device. You tin similar a shot visualize the estimated unloosen energy usage of arrangement components, addition inspect background events that may contribute to battery drain. To utilization the unloosen energy profiler, ensure you lot 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 inward the CPU Profiler allows you lot to inspect how your app interacts alongside arrangement resources inward fine-grained detail. Inspect exact timings together with durations of your thread states, visualize where your CPU bottlenecks are across all cores, together with add together custom line events to analyze. To utilization arrangement trace, showtime profiling your app, click into the CPU Profiler, together with hence lead the System Trace recording configuration. Learn more.
  • Profiler Sessions - We similar a shot automatically salvage Profiler information equally "sessions" to revisit together with inspect afterward patch you lot lead hold Android Studio open. We've also added the mightiness to import together with export your CPU recordings together with heap dumps for afterward analysis or inspection alongside other tools. Learn more.
  • Automatic CPU Recording - You tin similar a shot automatically tape CPU activity using the Debug API. After you lot deploy your app to a device, the profiler automatically starts recording CPU activity when your app calls startMethodTracing(String tracePath), together with stops recording when your app calls stopMethodTracing(). Similarly, you lot tin also similar a shot automatically showtime recording CPU activity on app start-up past times enabling Start Recording a Method Trace on Startup selection inward your run configuration. Learn more.
  • JNI Reference Tracking - For those of you lot who lead hold C/C++ code inward your Android app, Android Studio 3.2 similar a shot allows you lot to inspect the retention allocations of your JNI code inward the Memory Profiler. As long equally you lot deploy your app to a device running Android 8.0 Oreo (API 26) together with higher, you lot tin drill downwardly into the allotment telephone band stack from your JNI reference. To utilization the feature, showtime a retention profiler session, together with select the JNI Heap from the Live Allocation drop-down menu. Learn more.

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

Develop

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

Build

  • Android App Bundle
  • D8 Desugaring
  • R8 Optimizer
Test
  • Android Emulator Snapshots
  • Screen Record inward Android Emulator
  • Virtual Scene Android Emulator Camera
  • AMD Processor Support
  • Hyper-V Support
  • ADB Connection Assistant

Optimize

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

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

Getting Started

Download the latest version of Android Studio 3.2 from the download page. If you lot are using a previous canary release of Android Studio, brand certain you lot update to Android Studio Canary xiv or higher. If you lot desire to keep a stable version of Android Studio, you lot tin run the stable release version together with canary release versions of Android Studio at the same time. Learn more.

To utilization the mentioned Android Emulator features brand certain you lot are running at to the lowest degree Android Emulator v28.0.7+ downloaded via the Android Studio SDK Manager.

We appreciate whatever feedback on things you lot like, together with issues or features you lot would similar to see. Please note, to keep high production quality, a couplet features (e.g. Navigation Editor) you lot saw inward before release channels are non enabled past times default inward the stable release channel. If you lot 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
4/ 5
Oleh