Android Studio Hedgehog is stable.

Today we’re excited to announce the stable release of Android Studio Hedgehog🦔, the official IDE for building Android apps!

In this release of Android Studio, we upgraded the IntelliJ platform to 2023.1. It includes features designed to improve app performance and battery life, make it easier to upgrade your applications to the latest Android versions, and enable faster development using Jetpack Compose. Learn more about how Android Studio Hedgehog can help you maximize developer productivity.

App performance

Android Essentials of App Quality Statistics

In addition to helping you investigate crash reports for apps instrumented with the Firebase Crashlytics SDK, App Quality Insights now also includes Android Vitals data from the Google Play Console. Android Vitals lets you view crash reports for any app you publish to the Google Play Store without any additional instrumentation on your app. You can view and filter Android Vitals issues and see crash insights in Play to quickly understand and resolve crash causes and jump from stack trace to code. App Quality Insights Tool window. Learn more.

memo: If you don’t have permission to view your app in the Play Console, ask your app administrator to share read-only access to app quality information only. Users and permissions > View app quality information (read-only) In the Play Console

 

Screen capture of Android Vitals data from App Quality Statistics

Android Vitals data from App Quality Statistics

Power profiler

The new Power Profiler shows your device’s power consumption. It breaks down power consumption information by subsystems called “power rails.” This helps you visualize the correlation between the power consumed and the activity occurring in your app. This approach to directly measuring power consumption differs from traditional Energy Profilers, which only used models to estimate energy consumption.

Understanding this information allows you to run A/B tests to compare the power consumption of different algorithms, features, or different versions of your app, potentially identifying and fixing power consumption issues in your app.

See also  Congratulations on another year of partnership and innovation

Apps optimized for lower power consumption improve battery and thermal performance, improving the end-user experience. Power Rail data is available on Pixel 6 and later devices running Android 10 and later.

 

Examples of power consumption for various power rails.

Examples of power consumption for various power rails.

coding productivity

Target Android 14 using the Android SDK Upgrade Assistant

The SDK Upgrade Assistant provides a step-by-step wizard flow to help developers complete the next steps. targetSdk version upgrade. Save time and effort by importing documents directly into your IDE.

Android Studio Hedgehog added support for upgrading your project to Android 14 (API level 34). We’ve also added relevance filters to eliminate unnecessary steps, and in some cases, the Upgrade Assistant pinpoints where changes are needed in your code.

 

Android SDK Upgrade Assistant screen capture

Android SDK Upgrade Assistant

New UI updates

The Giraffe release introduces a new UI for the IDE. This newly reimagined theme delivers a more modern, clean look and feel by reducing visual clutter and making essential features more accessible. We’ve listened to your feedback and added updates to Hedgehog for compact mode, vertical and horizontal splits, and the Project tab for Mac OS. If you haven’t tried the new UI yet, we encourage you to do so.

 

Compact mode screen capture of the new UI

Compact mode in the new UI

device mirroring

You can now mirror your physical Android device on: execution device This is the window of Android Studio. While mirroring your device’s display directly to Android Studio via ADB via USB or Wi-Fi, you can directly perform common tasks such as launching and interacting with apps, rotating the screen, folding and unfolding the phone, changing the volume, and more. Within Android Studio. Learn more.

 

Video demonstrating device mirroring in the Running Devices window

Mirror devices in the Running Devices window

Embedded Layout Checker

You now have the option to run the Layout Inspector directly. execution device A tool window while running an app on an embedded virtual device or mirrored physical device. This opt-in feature significantly improves the performance of the Layout Inspector, saves screen space, helps organize your UI debugging workflow in a single tool window, and improves speed while inspecting layouts. Embedded mode allows you to display the view hierarchy, inspect the properties of each view, jump into the code using the ‘deep dive’ mode, and access other common Layout Inspector features. This activates Settings > Experiment > Layout Inspector

See also  Top 10 travel apps on the U.S. App Store by user acquisition

 

Screen capture showing the Embedded Layout Inspector

Embedded Layout Checker

Manual mode shortcuts updated for live editing

Real-time editing has a new default shortcut for manual mode: Control+\ (Command+\ on macOS). Manual mode is useful in situations where you want to control exactly when updates are distributed to running applications. For more information, see the video clip in Real-time Editing for Jetpack Compose.

authoring tool

Gallery mode in Compose preview

gallery mode A new mode in Compose Preview that lets you focus on one preview at a time to save rendering resources. Use gallery mode when iterating the UI, and switch to another mode (grid or list) when you need to see UI variations.

 

Video image in Compose Preview gallery mode

Gallery mode in Compose preview

Build status information in the debugger

When setting a breakpoint on a composable function, the debugger now lists the composable’s parameters and state, making it easier to identify changes that caused unexpected reorganization.

 

Screen capture of the debugger's creation status information

Build status information in the debugger

Create multiple preview templates

Android Studio Hedgehog includes the latest annotation support added in the Compose Multipreview API, allowing developers to render common layout scenarios side by side while working with Compose Preview.

The newly added comments are as follows: @PreviewScreenSizes, @PreviewFontScales, @PreviewLightDarkand @PreviewDynamicColors

 

Compose multi-preview template screenshot

Create multiple preview templates

build tools

New macro to specify JDK path

new macro, #GRADLE_LOCAL_JAVA_HOMEmakes Java safer and easier to specify.* Home path used to run the project’s Gradle daemon (background process). .gradle/config.properties file. There is now a single source of truth for Gradle JDK selection, reducing errors related to incompatible Gradle and project JDK versions.

See also  Virtual machines as core Android primitives

Starting with Android Studio Hedgehog, new projects #GRADLE_LOCAL_JAVA_HOME Basically. Existing projects are automatically migrated to the new macros after a successful synchronization, unless you are already using the following macros: #JAVA_HOME.

[Windows-only] Minimize the impact of antivirus software on build speed.

Build Analyzer informs users if antivirus software may be affecting build performance. This can happen if antivirus software, such as Windows Defender, scans the directories used by Gradle in real time. Build Analyzer recommends a list of directories to exclude from active scanning and, if available, provides links to add them to the Windows Defender folder exclusion list.

Using a Firebase Test Lab device with a Gradle-managed device

Gradle-managed devices can now target Firebase Test Lab devices, leveraging them to run automated tests at scale. Gradle managed devices allow you to choose from a wide range of physical and virtual FTL devices, along with test sharding support for faster execution times. FTL devices require Android Gradle plugin 8.2, which includes the latest alpha version of the Firebase Test Lab Gradle plugin. Learn more.

Download Android Studio now!

Now is the time to download Android Studio Hedgehog and integrate new features into your workflow. As always, we appreciate your feedback about your likes, issues, or features you’d like to see. If you find an issue, please check known issues and report bugs if necessary. Don’t forget to follow us too X (formerly known as Twitter)Check out more Android development updates on Medium or YouTube!

*Java is a trademark or registered trademark of Oracle and/or its affiliates.

Leave a Reply

Your email address will not be published. Required fields are marked *