Posted by Paris Hsu, Product Supervisor, Android Developer
Android Studio Electrical Eel splash display screen |
Right now, we’re ⚡️electrified⚡️ to announce the newest secure launch of the official IDE for constructing Android functions: Android Studio Electrical Eel (2022.1.1)!
Design
Compose Preview updates mechanically |
Compose Preview System Spec |
Format Inspector recomposition rendering highlights |
Visible Linting for Views: New for XML layouts, Visible linting now runs within the background to verify for points throughout completely different type elements, detecting issues reminiscent of overlapping or non-visible parts on a given machine configuration.
For instance, within the animated display screen seize under, you possibly can see that the format file has two validation issues: a TextView lined by an ImageView on sure display screen sizes and an ImageView, which is partially out-of-bounds in some configurations. Clicking on the issue within the Issues panel will open the Format Validation panel to see your layouts rendered for the assorted machine sizes and spotlight the configurations with the chosen difficulty.
Visible Linting for Views |
Common Issues Panel |
Construct & Dependencies
Obtain impression in Construct Analyzer: The Construct Analyzer software supplies you perception into what occurs throughout your builds. This now features a abstract of any dependency downloads that occurred. You should utilize this data to find out the impression of downloads in your construct, and to identify issues reminiscent of downloads occurring throughout incremental builds.
The knowledge of the obtain impression is damaged down by repositories, so you possibly can see the place every dependency was downloaded from. You may also see if a repository takes a very long time to serve artifacts, or has a excessive variety of failed requests. If that’s the case, it’s best to think about eradicating the repository, if potential, or transferring it decrease in your repository configuration, in order that different repositories take precedence over it.
Obtain impression in Construct Analyzer |
Improve Assistant post-upgrade report and rollback help |
SDK Index integration |
Baseline Profile repair for App Bundles: Below sure circumstances Baseline Profiles might have been compressed when the app was constructed as an Android App Bundle. This resulted within the profile not being picked up when putting in the app regionally. On this native solely state of affairs, benchmark outcomes can be slower than anticipated. The bundletool model transport with Electrical Eel addresses and fixes this downside.
Examine
Logcat New UI |
App High quality Insights window |
Emulators & units
New “Desktop” class & Desktop AVD: In Electrical Eel, you now have the choice to create a Desktop emulator. This allows you to take a look at how your app behaves on units reminiscent of Chromebooks. There are a handful of interactions which are completely different on these units that it’s best to take a look at along with your app. For instance, apps will be freeform resized or minimized, which your app ought to deal with gracefully.
Testing apps on new Desktop AVDs |
Resizable Emulator (Experimental): The Resizable emulator helps you take a look at your app on completely different display screen sizes with out having to run a number of emulators. After creating and launching a resizable emulator, you should utilize the Show Mode menu to modify between completely different reference machine sizes and see how your app behaves.
Utilizing the Resizable Emulator |
Bodily Gadgets Mirroring (Experimental, Decide-in): Now you can mirror your bodily machine to Android Studio and work together with it equally to the way you’d use an emulator. That is an opt-in function in Electrical Eel so that you could share suggestions with us. With a purpose to use it, you could first go to Choice > Experimental > System Mirroring to allow it. Then, join your bodily machine by ADB (both by wired or wi-fi), and it’ll present up within the Operating Gadgets panel. As soon as mirrored, you possibly can work together with it very similar to you’re used to with emulators, reminiscent of multi-touch, bodily buttons, and machine rotation. Mouse and keyboard occasions are forwarded, and you should utilize the controls on the toolbar to enter button presses, or to rotate the machine.
You may also drag and drop recordsdata onto the mirrored machine (similar to on an emulator). If the file is an APK, it is going to be put in, which will be actually helpful for rapidly testing a construct. For different file varieties, the file shall be copied to the machine’s Obtain folder.
Bodily Gadgets Mirroring (Android Studio and Bodily Deice) |
IntelliJ
IntelliJ Platform Replace – Android Studio Electrical Eel (2022.1.1) consists of the IntelliJ 2022.1 platform launch, which has many new options reminiscent of Dependency Analyzer to facilitate dependency administration and battle decision and the Notifications software window that provides a brand new, streamlined approach to obtain notifications from the IDE. It additionally consists of quite a few different notable enhancements which are lined right here.
To recap, Android Studio Electrical Eel (2022.1.1) consists of these new enhancements & options:
Design
- Compose Preview updates mechanically
- Compose Preview machine spec
- Format Inspector recomposition rendering highlights
- Visible Linting
- Common Issues panel
Construct & dependencies
- Improved Sync efficiency with parallel undertaking imports
- Obtain impression in Construct Analyzer
- Improve Assistant post-upgrade report and rollback help
- SDK Index integration
- Baseline Profile repair for App Bundles
Emulators & units
- New “Desktop” class & Desktop AVD
- Resizable Emulator (Experimental)
- Bodily Gadgets Mirroring (Experimental, Decide-in)
IntelliJ
- IntelliJ Platform 2022.1 Replace
Take a look at the Android Studio launch notes, Android Gradle plugin launch notes, and the Android Emulator launch notes for extra particulars.
Obtain Studio Right now!
It’s a good time to obtain Android Studio Electrical Eel (2022.1.1) to include the brand new options into your workflow. As at all times, we recognize any suggestions on stuff you like and points or options you want to see. In the event you discover a bug or difficulty, please file a difficulty and likewise take a look at known-issues. Keep in mind to additionally observe us on Twitter, Medium, or YouTube for extra Android Growth updates!