Posted by Sandhya Mohan, Product Manager
Today, we are excited to announce the release of Android Studio Hedgehog 🦔 : the official IDE for Android application building.
With this release of Android Studio, we’ve upgraded the IntelliJ platform to 2023.1, designed to improve app performance and battery life, simplify app transitions to the latest version of Android, and enable faster development using Jetpack Compose. Read on to learn more about how Android Studio Hedgehog can help supercharge your developer productivity.
Android Fundamentals in App Quality Insights
In addition to helping you analyze crash reports for apps using the Firebase Crashlytics SDK, App Quality Insights now includes basic Android data from the Google Play Console. With Android Basics, you can view crash reports for any app you publish to the Google Play Store without the need for an additional tool in your app. View crash insights and jump stack traces from Play to quickly understand and resolve root causes of Android issues, diagnoses, and fixes, all from Application quality insights Tool window. know more.
Note: If you don’t have permission to view your app in the Play Console, ask the app administrator to share read-only app quality information by clicking Access. Users and permissions > View application quality information (read-only) In the Play Console.
The new power profiler shows power consumption on devices. It divides energy consumption information into subsystems called “energy rails”. This helps you see the correlation between the power consumed and the actions that occur in your application. This approach of directly measuring energy consumption differs from the previous energy profiler, which only uses a model to estimate energy consumption.
By understanding this information, you can identify power consumption issues in your app by running A/B tests to compare power consumption between different algorithms, features, or different versions of your app.
Applications optimized for low power consumption lead to improved battery and thermal performance, ultimately leading to an improved user experience. Power Rails data is available on Pixel 6+ devices running Android 10+.
Target Android 14 using the Android SDK Update Assistant
It provides a step-by-step wizard flow to help developers navigate through the SDK update targetSdkVersion Improvements. Drags documents directly into the IDE, saving you time and effort.
Android Studio adds support for upgrading Hedgehog projects to Android 14 (API level 34). We’ve also added more relevance filters so that unnecessary steps are removed – and in some cases the Update Assistant will point out exactly where in the code the changes need to be made.
New UI updates
With the release of Giraffe, we launched a new UI for the IDE. This reimagined theme reduces visual complexity and provides easy access to important features, resulting in a more modern and clean look and feel. We’ve listened to your feedback, and in Hedgehog, we’ve added compact mode, vertical and horizontal splitting, and project tabs for Mac OS updates. If you haven’t tried the new UI yet, we encourage you to do so.
Now you can mirror your physical Android device in Running gear A window in Android Studio. Launch and interact with apps, rotate the screen, fold and unlock the phone, change the volume, and more—right from within Android Studio—while mirroring your device’s display directly to Android Studio via ADB via USB or WiFi. know more.
Embedded position checker
Now you have the option to run the position checker directly in Running gear A device window when running your application on an embedded virtual device or a mirrored physical device. This opt-in feature greatly improves Layout Inspector performance, conserves screen real estate, helps organize your UI editing workflow in a single tool window, and improves speed when checking your layout. In nested mode, you can display the view hierarchy, inspect the properties of each view, drill down into code using “deep inspection” mode, and access other common layout inspector features. Enable via Settings > Test > Location Checker
Live edit updated manual mode shortcut
Live Edit has a new default shortcut for manual mode: Control+\ (Command+\ for macOS). Manual mode is helpful when you want to have precise control over when updates are deployed to a running application. For more information, see the video clip for Jetpack Writing in Live Edit.
Enter preview gallery mode
Gallery mode Set Preview is a new mode that lets you focus on one preview at a time to save display resources. Use gallery mode when iterating on the UI and switch to other modes (grid or list) when you want to see UI variations.
Write the state information in the editor
When you set a breakpoint on a composite function, the debugger will now list the parameters of the composite and their status, so you can easily determine what changes caused unexpected recombinations.
Write multiple preview templates
Android Studio Hedgehog includes support for the latest annotations added via the Multi-Preview API, which allows developers to display common layout conditions side-by-side while working with the Preview text editor.
New explanations added include: @Preview screen sizes, @preview font scales, @ preview light darkAnd @Preview dynamic colors
A new macro that specifies the JDK path
new macro, # GRADLE_local_java_homemakes specifying Java safer and easier* A home path used for running the Gradle daemon (background process) with reference to your project .gradle/config.properties file. Now that there is a single source of truth for your Gradle JDK selection, this reduces errors related to incompatible Gradle and Project JDK versions.
Starting with Android Studio Hedgehog, new projects are used # GRADLE_local_java_home By default. Existing projects are automatically migrated to the new macro after a successful sync, unless you are already using the macro. # java_home.
[Windows-only] Reduce the impact of antivirus software on build speed
Build Analyzer notifies users if antivirus software is affecting build performance. This can happen if antivirus software like Windows Defender is scanning the directories used by Gradle in real-time. Build Analyzer recommends directory listings to exclude from active scanning, and if possible, provides a link to add them to the Windows Defender folder exclusion list.
Use the Firebase Test Lab tools for Gradle managed tools
Gradle managed tools can now target Firebase Test Lab tools, and you can use it to run your automated tests at scale. Use Gradle managed tools to choose from a variety of physical and virtual FTL tools, with support for test sharing for accelerated execution time. To use FTL Tools, you need Android Gradle Plugin 8.2 with the latest alpha version of the Firebase Test Lab Gradle plugin. know more.
Download Android Studio today!
Now is the time to download Android Studio Hedgehog to incorporate the new features into your workflow. As always, we appreciate any feedback on things you like, issues or features you’d like to see. If you encounter problems, please check the known issues and file an error if necessary. Remember to follow us too X (formerly known as Twitter)Medium or YouTube for more Android development updates!
*Java is a trademark or registered trademark of Oracle and/or its affiliates.