请问一下,Android Studio Flamingo | 2022.2.1 发布,快来看看有什么更新吧
最新回答
蘇瑾熙
2026-08-13 20:23:21
Android Studio Flamingo, released in 2022.2.1, features a JDK 17 bundled within, a departure from JDK 11. Key updates include IDE support for app theme icons and dynamic colors, an updated Network Inspector, enhanced App Quality Insights, and Live Edit improvements. The JDK change necessitates cautious updates from users.
Android Studio Flamingo now includes a JDK 17, a notable change from JDK 11. Developers should proceed with caution when updating.
With Material 3's dynamic colors and Android 13's app theme icons, layouts or launch icons now adapt with the user's wallpaper's color. The new System UI Mode tool in launcher.xml files allows previewing themed app icons under different wallpapers.
Starting from Android 13 (API level 33), users can set theme icons, and if the launcher supports it, it will use the wallpaper and theme colors to determine the app icon's color. The dynamic color feature in Compose Preview lets developers switch wallpapers and see UI changes based on user-selected wallpapers. Requires Compose 1.4.0-alpha03 or higher.
The live Edit feature now has Manual and Automatic modes, accessible through the File>Settings menu. Compose Tracing offers low-intrusive system tracking, allowing developers to view Compose functions in the System Trace Profiler. Requires Compose Runtime Tracing dependencies, and can be accessed through the Android Studio Profiler with System Trace and Record. Compose tracing is experimental.
Android Studio Flamingo comes with updated project templates, utilizing Compose Material 3 unless specified for Views template. Templates can be viewed in the New Project or Create New Module dialog.
Network Inspector in Android Studio Flamingo displays all traffic data in full timelines by default, with an option to filter and manage rules to test app behavior with different responses. Rules specify intercepted responses and modifications before reaching the app.
Layout checkers automatically connect to the foreground process on connected devices, providing insights into UI issues. App Quality Insights in Flamingo offers new features and filters for prioritizing issues, supporting team collaboration. Enhanced filtering, search, and direct issue handling in the tool window are available.
Android Studio Flamingo supports offline use of limited features in App Quality Insights, allowing investigation of cached data and recent events without network connectivity. Reconnects to Crashlytics upon reconnection.
Flamingo introduces one-click automation for configurable builds, simplifying profiling app configuration. Requires API level 29 or higher for virtual or physical testing devices. Further documentation can be found on Profileable applications.
Lint support for SDK extensions in Android Studio Flamingo enables correct API access in apps with API backports and new surfaces, like Android Privacy Sandbox. This feature checks the availability of extensions and implements necessary API checks, including quick fixes.
With JDK 17 bundled in, new projects will use the latest stable Android Gradle plugin and JDK 17. However, existing projects might encounter breaks, requiring manual adjustment to compatible JDK versions.
Configuring JDK versions in Android Studio involves updating the build.gradle file's CompileOptions {} block to specify the Java language version, depending on the project's compileSdkVersion. This ensures compatibility with different Android versions and their supported Java versions.