What is new in Android Studio Electric Eel ? š„
āØ 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 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.
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.
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.
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.
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.
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.
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.
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.
āØ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.
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.
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 š