Mishaal Rahman Profile picture
The best source for Android OS news. Co-host @AndroidFaithful. Senior contributor @AndroidAuth, @AndroidPolice, and more.

May 10, 2023, 15 tweets

What’s new in Android Studio? A lot of things, some of which make use of generative AI to improve your workflow. Here’s what got announced at #GoogleIO 🧵

Android Studio Hedgehog (the latest Canary version, and no, its logo isn’t Sonic) adds a new AI-powered conversational feature called Studio Bot, better tools to develop for multiple form factors, and new insights, debugging, and testing solutions.

Studio Bot is an AI-powered conversational experience that leverages Codey, Google’s foundation model for coding, to help you generate code for your app. You can also ask it questions about Android development or to help you fix errors in your code.

Google cautions that Studio Bot is in its very early stages, so expect it to make mistakes. That being said, it’ll hopefully continue to improve through your use and feedback. Studio Bot is currently only available to Android developers in the U.S.

If you’re worried about your IP, Google says only the chat dialogue between yourself and Studio Bot is shared with the company — not your source code. You can learn more about Studio Bot here: developer.android.com/studio/preview…

You can start preparing your app to take advantage of the expanded screen sizes and functionality of new foldables and tablets launching later this year (Pixel Fold and Pixel Tablet) by creating AVDs using these new profiles in Android Studio Hedgehog.

If you’re looking to make an app for the new version of Wear OS — Wear OS 4 based on Android 13 — you can test the new platform features through the new Wear OS 4 emulator. developer.android.com/training/weara…

If you want to test your app on a physical Pixel device and don’t have one, you can use Android Device Streaming to stream a remote physical Pixel device directly within Android Studio. An early access program will launch later this year. developer.android.com/studio/preview…

The Espresso Device API will help you write tests that perform synchronous configuration changes when testing on AVDs running API level 24 and higher. This will help you test your app across configuration changes like rotating or folding a device. developer.android.com/studio/preview…

Android Studio Hedgehog will let you view important crash reports from Android vitals, building on the App Quality Insights feature first introduced in Android Studio Electric Eel.

A new Power Profiler feature will show power consumption data segmented by each sub-system, such as Camera, GPS, etc. This data is available when recording a System Trace via the Profiler so you can visually correlate power consumption with what’s happening in your app.

The Device Explorer (previously Device File Explorer) now includes info about debuggable processes running on connected devices, accessed through the new Processes tab. Here you can select a process and kill it, force stop it, or attach the debugger.

Gradle Managed Devices can now target real, physical devices running in Firebase Test Lab, so you can more easily scale automated tests in your CI infrastructure across the large number of devices available through FTL. This is available with Android Gradle Plugin 8.2.

Android Studio Hedgehog includes IntelliJ 2023.1, the release notes of which are available here: jetbrains.com/idea/whatsnew/… The New UI has been improved with a new Compact Mode.

There are other changes, many of which were already announced/are already available, such as Live Edit for Compose UI, default Kotlin DSL in Gradle build scripts, automatic per-app language support, Android SDK Upgrade Assistant, etc. See Google’s blog post for the full details!

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling