Android Studio

By EricAdamson

Today we are excited to announce the stable version Android Studio 4.1. This release includes a number of new features that address common editing, debugging and optimization uses cases. This release had a major theme of helping you to be more productive with Android Jetpack libraries. These libraries are designed to assist developers in following best practices and writing code faster. We listened to your feedback and made several improvements to the code editing experience using IDE integrations for most popular Android libraries.

Android Studio 4.1 include a new Database

Android Studio 4.1 has some highlights war scythe, including a new Database Inspector that allows you to query your app’s databases, the ability to navigate projects that use Dagger/Hilt for dependency injection and improved support for machine learning on-device with TensorFlowLite models for Android projects. To speed up deployment, we’ve made improvements to Apply Changes. We listened to your feedback and made many changes to assist game developers.

The team continues to focus on newtoki product quality and has been diligent in identifying and fixing bugs. Many developers have expressed their appreciation for the emphasis on reliability and performance. We are happy to report that we’ve closed 275 open issues and fixed 2,370 bugs during this release cycle. As developers are highly productive, we will continue to maintain high quality.

We are grateful to all who provided feedback during preview releases. We were able to improve and iterate on features in Android Studio 4.1 thanks to your feedback. Android Studio 4.1 is available for download if you are ready to upgrade to the latest stable version and want to take advantage of new productivity features.

Material Design Components Updates

The create New Project dialog in Android Studio now uses Material Design Components (MDC). This means that templates conform to the updated style and themes guidelines. These updates will make it easier for you to use the recommended material styling patterns, and support modern UI features such as dark themes.

The latest updates include:

MDC: Projects depend on in build.gradle. Base app themes use Theme.MaterialComponents. * Parents and override the updated MDC color or “on” attributes.
Color resources: Color resources on colors.xml are given literal names like purple_500 or colorPrimary.
Theme resources: Theme resource are found in themes.xml instead of styles.xml and can be used with Theme. Names
Dark theme: These base application themes are based on DayNight parents. They can be split between res/values or res/values night.
Theme attributes: In order to avoid hard-coded color, theme attributes are used in layouts and styles.

Android Studio keeps a live connection so you can inspect your app and modify values with the Database Inspector. You’ll also be able to see any changes made in your running app. Android Studio places run buttons next each query in the code editor if you are using the Room persistence library. This allows you to quickly execute queries that you have defined in your @Query annotations. Find out more

Android Studio allows you to run Android Emulator from within Android Studio

Now you can run the Android Emulator in Android Studio. This feature allows you to save screen real estate, navigate quickly between editor and emulator using hotkeys, as well as organize your emulator and IDE workflow in one application window.