Android Studio 4.1 Stable Release – New Features and Improvements
Android Studio 4.1 introduces a suite of enhancements—including a Database Inspector, Material Design component updates, integrated TensorFlow Lite support, improved Apply Changes, native memory profiling, and expanded emulator capabilities—aimed at boosting productivity and code quality for Android developers.
Google has announced the stable release of Android Studio 4.1, a major IDE update that adds a range of features to streamline common editing, debugging, and optimization tasks while encouraging best‑practice use of Android Jetpack libraries.
Key highlights include a brand‑new Database Inspector for querying and editing app databases, built‑in support for Hilt dependency injection, and first‑class TensorFlow Lite model integration that generates type‑safe binding code. The Apply Changes workflow has been accelerated, and a native memory profiler has been added for C/C++‑based apps and games.
Design updates bring Material Design Components (MDC) into the New Project wizard, default to the latest theme guidelines, and simplify theme handling with new themes.xml , color resources (e.g., purple_500 ), and dark‑theme support via the DayNight parent.
Development enhancements cover several areas:
Database Inspector can be opened via View > Tool Windows > Database Inspector and works with Room or raw SQLite databases on API 26+ devices.
The Android Emulator can now run inside the IDE window; enable it via File → Settings → Tools → Emulator → Launch in Tool Window .
Dagger navigation support adds gutter icons that jump to provider or consumer locations, with similar support for Hilt.
TensorFlow Lite model files (.tflite) can be opened in a model viewer; the generated binding classes simplify inference code.
Build and test improvements include:
Foldable‑device support in the Android Emulator (5G testing and hinge angle sensors).
Apply Changes now supports additional code modifications, such as adding methods without reinstalling the app.
Exporting native C/C++ dependencies from an AAR by adding the following to build.gradle : buildFeatures { prefabPublishing true } prefab { mylibrary { headers "src/main/cpp/mylibrary/include" } myotherlibrary { headers "src/main/cpp/myotherlibrary/include" } }
Native crash symbolication can be enabled with: android.buildTypes.release.ndk.debugSymbolLevel = 'SYMBOL_TABLE'
Optimization tools have been refreshed:
System Trace UI now offers selection mode, a new Summary tab with aggregated statistics, and additional timeline data for SurfaceFlinger and VSYNC.
A standalone profiler can be launched from the bin directory ( profiler.exe or profiler.sh ) and attached to devices or emulators.
The native memory profiler records allocations via the “Record native allocations” button.
In summary, Android Studio 4.1 adds Material Design component updates, Database Inspector, integrated emulator, Dagger navigation, TensorFlow Lite support, foldable‑device emulator features, Apply Changes enhancements, AAR native dependency export, native crash symbolization, System Trace improvements, a standalone profiler, and a native memory profiler.
Sohu Tech Products
A knowledge-sharing platform for Sohu's technology products. As a leading Chinese internet brand with media, video, search, and gaming services and over 700 million users, Sohu continuously drives tech innovation and practice. We’ll share practical insights and tech news here.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.