What is new in Android Studio Electric Eel ? šŸ”„

Rey | AndroidGeek.co
Tips for Coding
Published in
6 min readJan 13, 2023

--

āœØ Design

Compose Preview updates automatically :

In the previous version, Compose Previews had to be manually refreshed after modifications. Electric Eelā€™s Previews update instantly following suitable code changes in the same file, making UI iteration quicker. Previews will display ā€œNeeds Rebuildā€ if your code update was incompatible. Previews are interrupted and restarted when compilation issues are rectified during editing.

Compose Preview updates automatically

Compose Preview device spec :

Compose Preview now lets you alter the device parameter of the Preview annotation to define device settings. Autocomplete will let you pick from reference devices or construct your own. Dolphin multipreview annotations complement this.

Compose Preview Device Spec

Layout Inspector recomposition rendering highlights :

Layout inspector now indicates recomposing composables. This shows where in the program the most recent action changed recomposition counts the most. New UI components are colored. This helps you find unexpected or excessive app recompositions. Jetpack Compose: Debugging Recomposition covers layout inspector debugging.

Layout Inspector recomposition rendering highlight

Visual Linting for Views :

Visual linting now runs in the background for XML layouts, finding errors like overlapping or non-visible items on multiple form factors.
In the animated screen sample below, the layout file has two validation issues: a TextView covered by an ImageView on certain screen sizes and an ImageView partly out-of-bounds in some settings. Clicking on a problem in the Problems panel opens the Layout Validation window, which renders your layouts for different device sizes and highlights setups with the problem.

Visual Linting for Views

Universal Problems Panel :

The new Problems panel contains all Android Studio tool-reported issues. Visual linting, navigation, and Compose problems.

āœØBuild & Dependencies

Improved Sync performance with parallel project imports :

Gradle Syncā€™s default parallelism helps speed up huge projects. Squareā€™s Gradle Enterprise measurements reveal a 60% sync time decrease, saving developers 1,600 hours per year. Note: These enhancements affect Gradleā€™s model building time but not the IDEā€™s model processing.

Download impact in Build Analyzer :

Build Analyzer shows build activity. This now summarizes dependency downloads. This information might help you assess how downloads affect your build and identify issues like incremental downloads.

You can examine each dependencyā€™s download effect by repository. You may also check whether a repository serves artifacts slowly or fails many requests. If so, remove the repository or move it lower in your repository setup so other repositories have precedence.

Download impact in Build Analyzer

Upgrade Assistant post-upgrade report and rollback support :

Electric Eel improved the Android Gradle Plugin Upgrade Assistant. After upgrading, the assistant will sync your project and report its success. It now summarizes actions taken. If the project sync fails after the update, utilize the new Revert button to reverse build file modifications.

Upgrade Assistant post-upgrade report and rollback support

SDK Index integration :

they launched Google Play SDK Index, which lists SDKs you may integrate into your app. SDK developers may designate obsolete SDKs in the SDK index, which Android Studio now displays.
In your build file, a lint warning on the dependency will alert you to update it if itā€™s outdated. The Project Structure Dialog warns about obsolete dependencies and links to their Play SDK Index page.

SDK Index integration

Baseline Profile fix for App Bundles:

The Android App Bundle may contain compressed Baseline Profiles. Installing the program locally did not pick up the profile. Benchmark results would take longer in this local only situation. Electric Eel bundletool solves this issue.

āœØInspect

All-new Logcat :

Logcat was completely redesigned to make parsing, querying, and tracking logs simpler. Dolphinā€™s opt-in Logcat UI is now enabled by default in Electric Eel, with many quality-of-life and stability improvements. Highlights include enhanced log formatting, a smarter search box with autocomplete support to filter logs, the ability to store log output between app restarts, and customization choices.

Logcat New UI

App Quality Insights window :

The new App Quality Insights capabilities in Android Studio enable you examine and analyse Firebase Crashlytics crash data without leaving the IDE.
You may limit your top problems to see just recent crashes or crashes from a certain app version in the IDE. The number of impacted users and stack trace for each problem help you to easily locate the crash in your code. Gutter icons in your source files highlight code from your appā€™s top crash reports. Click the link to go from code to crash report in App Quality Insights. Start with official documents.

App Quality Insights window

āœØEmulators & devices

New ā€œDesktopā€ category & Desktop AVD :

You can create a desktop emulator in Electric Eel. This allows you test your software on Chromebooks. Your app should test a few device-specific interactions. Your app should seamlessly handle freeform resizing and minimization.

Testing apps on new Desktop AVDs

Resizable Emulator :

Resizable emulators let you test your program on various screen sizes without running numerous emulators. After generating and starting a resizable emulator, utilize the Display Mode option to test your app on multiple reference device sizes.

Using the Resizable Emulator

Physical Devices Mirroring

Mirror your actual device to Android Studio and utilize it as an emulator. Electric Eel has an opt-in function for feedback.

You can enable it under :

Preference > Experimental > Device Mirroring.

Connect your device to ADB (wired or wireless) to see it in the Running Devices window. Mirroring lets you utilize multi-touch, physical buttons, and device rotation like an emulator. Mouse and keyboard events are transmitted, and the toolbar controls allow button pushes and device rotation.
Drag-and-drop files onto the mirrored disk (just like on an emulator). Installing an APK allows speedy build testing. The deviceā€™s Download folder will receive additional file kinds.

PC :

Mobile :

Source :

Here is the Android Geek YouTube Channel :šŸ‘‡

AndroidGeek.co provides you everything you are looking for, from short best-practices videos up to complete beginner courses and advanced courses.

In our channel, youā€™ll learn how to create Android apps and much more!

What are you waiting for?

Subscribe to our channel and start learning today šŸ’”šŸ˜Š

āœØ Join Medium to read thousands of valuable stories āœØ

Thank you for reading, and Happy Coding! šŸ˜Š

Donā€™t forget šŸ‘

--

--

Rey | AndroidGeek.co
Tips for Coding

Iā€™m Reyhaneh . Iā€™m always eager to learn new things , I like to share these things with others :) AndroidGeek Youtube : https://www.youtube.com/c/AndroidGeekco