Posted by Neville Sicard-Gregory – Senior Product Supervisor, Android Studio
At present we’re launching Android Studio Iguana 🦎 within the secure launch channel to make it simpler so that you can create top quality apps. With options like Model Management System help in App High quality Insights, to the brand new built-in help to create Baseline Profiles for Jetpack Compose apps, this model ought to improve your growth workflow as you optimize your app. Obtain the newest model right now!
Take a look at the listing of latest options in Android Studio Iguana under, organized by key developer flows.
Debugging
Model management system integration in App High quality Insights
When your launch construct is a number of commits behind your native supply code, line numbers in Firebase Crashlytics crash studies can simply go stale, making it harder to precisely navigate from crash to code when utilizing App High quality Insights. In the event you’re utilizing git to your model management, there’s now an answer to this downside.
While you construct your app utilizing Android Gradle Plugin 8.3 or later and the newest model of the Crashlytics SDK, AGP contains git commit info as a part of the construct artifact that’s printed to the Play Retailer. When a crash happens, Crashlytics attaches the git info to the report, and Android Studio Iguana makes use of this info to match your native checkout with the precise code that induced the crash out of your git historical past.
After you construct your app utilizing Android Gradle Plugin 8.3 or increased with the newest Crashlytics SDK, and publish it, new crash studies within the App High quality Insights window allow you to both navigate to the road of code in your present git checkout or view a diff report between the present checkout and the model of your app codebase that generated the crash report. Study extra.
View Crashlytics crash variants in App High quality Insights
At present, when you choose a Crashlytics subject in App High quality Insights, you see aggregated knowledge from occasions that share an identical factors of failure in your code, however might have totally different root causes. To help in your evaluation of the basis causes of a crash, Crashlytics now teams occasions that share very related stack traces as subject variants. Now you can view occasions in every variant of a crash report in App High quality Insights by deciding on a variant from the dropdown. Alternatively, you possibly can view mixture info for all variants by deciding on All.
Design
Jetpack Compose UI Verify
To assist builders construct adaptive and accessible UI in Jetpack Compose, Iguana introduces a brand new UI Verify mode in Compose Preview. This characteristic works equally to visible linting and accessibility checks integrations for views. Activate Compose UI test mode to robotically audit your Compose UI and test for adaptive and accessibility points throughout totally different display screen sizes, equivalent to textual content that is stretched on massive screens or low coloration distinction. The mode highlights points discovered in several preview configurations and lists them within the issues panel.
Strive it out by clicking the UI Verify icon in Compose Preview.
Progressive rendering for Compose Preview
Compose Previews in Android Studio Iguana now implement progressive rendering, permitting you to iterate in your designs with much less loading time. This characteristic robotically lowers the element of out-of-view previews to spice up efficiency, that means you possibly can scroll by way of even essentially the most complicated layouts with out lag.
Develop
Intellij Platform Replace
Android Studio Iguana contains the IntelliJ 2023.2 platform launch, which has many new options equivalent to help for GitLab, textual content search in Search All over the place, coloration customization updates to the brand new UI and a bunch of latest enhancements. Study extra.
Testing
Baseline Profiles module wizard
Many instances if you run an Android app for the primary time on a tool, the app can seem to have a sluggish begin time as a result of the working system has to run just-in-time compilation. To enhance this example, you possibly can create Baseline Profiles that assist Android enhance facets like app start-up time, scrolling, and navigation pace in your apps. We’re simplifying the method of organising a Baseline Profile by providing a brand new Baseline Profile Generator template within the new module wizard (File > New > New Module). This template configures your undertaking to help Baseline Profiles and employs the newest Baseline Profiles Gradle plugin, which simplifies setup by automating required duties with a single Gradle command.
Moreover, the template creates a run configuration that allows you to generate a Baseline Profile with a single click on from the “Choose Run/Debug Configuration” dropdown listing.
Take a look at in opposition to configuration adjustments with the Espresso Gadget API
Catch format issues early and guarantee your app delivers a seamless consumer expertise throughout units and orientations. The Espresso Gadget API simulates how your app reacts to configuration adjustments—equivalent to display screen rotation, gadget folding/unfolding, or window measurement adjustments—in a synchronous approach on digital units. These APIs assist you to rigorously take a look at and preemptively repair points that frustrate customers so that you construct extra dependable Android apps with confidence. These APIs are constructed on high of latest gRPC endpoints launched in Android Emulator 34.2, which permits safe bidirectional knowledge streaming and exact sensor simulation.
Pixel 8 and Pixel 8 Professional units in Android Emulator (34.2)
Take a look at your app on the newest Google Pixel gadget configurations with the up to date Android Digital Gadget definitions in Android Studio. With Android Studio Iguana and the newest Android Emulator (34.2+), entry the Pixel Fold, Pixel Pill, Pixel 7a, Pixel 8, and Pixel 8 Professional. Validating your app on these digital units is a handy approach to make sure that your app reacts accurately to a wide range of display screen sizes and gadget varieties.
Construct
Assist for Gradle Model Catalogs
Android Studio Iguana streamlines dependency administration with its enhanced help for TOML-based Gradle Model Catalogs. You may profit from:
- Centralized dependency administration: Hold all of your undertaking’s dependencies organized in a single file for simpler enhancing and updating.
- Time-saving options: Take pleasure in seamless code completion, sensible navigation inside your code, and the power to rapidly edit undertaking dependencies by way of the handy Undertaking Construction dialog.
- Elevated effectivity: Say goodbye to scattered dependencies and guide model updates. Model catalogs provide you with a extra manageable, environment friendly growth workflow.
New tasks will robotically use model catalogs for dependency administration. If in case you have an current undertaking, think about making the change to profit from these workflow enhancements. To learn to replace to Gradle model catalogs, see Migrate your construct to model catalogs.
Further SDK insights: coverage points
Android Studio Iguana now proactively alerts you to potential Google Play coverage violations by way of integration with the Google Play SDK Index. Simply see Play coverage points proper in your construct recordsdata and Undertaking Construction Dialog. This streamlines compliance, serving to you keep away from sudden publishing delays or rejections on the Google Play Retailer.
Android Studio compileSdk model help
Utilizing Android Studio to develop a undertaking that has an unsupported compileSdk model can result in sudden errors as a result of older variations of Android Studio might not deal with the brand new Android SDK accurately. To keep away from these points, Android Studio Iguana now explicitly warns you in case your undertaking’s supposed compileSdk is for a more recent model that it doesn’t formally help. If obtainable, it additionally suggests shifting to a model of Android Studio that helps the compileSdk utilized by your undertaking. Remember that upgrading Android Studio may also require that you simply improve AGP.
Abstract
To recap, Android Studio Iguana 🦎contains the next enhancements and options:
Debugging
Design
Develop
Testing
Construct
Obtain Android Studio At present
Obtain Android Studio Iguana 🦎 right now and make the most of the newest options to streamline your workflow and assist you to make higher apps. Your suggestions is crucial – test recognized points, report bugs, recommend enhancements, and be a part of our vibrant neighborhood on LinkedIn Medium, YouTube, or X (previously often known as Twitter). Let’s construct the way forward for Android apps collectively!