文章目录
- Android Studio Giraffe | 2022.3.1 (2023年7月)
- Android Studio Flamingo | 2022.2.1(2023 年 4 月)
- Android Studio Electric Eel | 2022.1.1(2023 年 1 月)
- Android Studio Dolphin | 2021.3.1(2022 年 9 月)
- Android Studio Chipmunk | 2021.2.1(2022 年 5 月)
- Android Studio Bumblebee | 2021.1.1(2022 年 1 月)
- Android Studio Arctic Fox | 2020.3.1(2021 年 7 月)
- 4.2.0 (2021年4月)
- 4.1.0
- 3.6 (2020年2月25日)
- 3.5 (2019年8月)
- 3.4 (2019年4月)
- 3.3 (2019年1月)
- 3.0 (2017年10月)
Android Studio Giraffe | 2022.3.1 (2023年7月)
- Android Studio Giraffe | 2022.3.1 补丁 1(2023 年 8 月)
支持的 Android API 级别上限
每个版本的 Android Studio 和 AGP 都有支持的 API 级别上限。如果项目所用 Android Studio 或 AGP 的 targetSdk 或 compileSdk 高于支持的最大值,则可能会导致意外问题。我们建议您使用最新的预览版 Android Studio 和 AGP 来处理以预览版 Android OS 为目标平台的项目。
Android Studio版本 | AGP版本 | API级别上限 |
---|---|---|
Iguana | 2023.2.1 | 8.3 | 34 |
Hedgehog | 2023.1.1 | 8.2 | 34 |
Giraffe | 2022.3.1 | 8.1 | 33 |
使用实时编辑功能实时更新可组合项
如需试用实时编辑功能,请使用 AGP 8.1 或更高版本以及 Compose 1.3.0 或更高版本。
新界面预览
新增了对 Compose 动画预览的 API 支持
Android Studio Flamingo | 2022.2.1(2023 年 4 月)
Android Studio Electric Eel | 2022.1.1(2023 年 1 月)
Android Studio Dolphin | 2021.3.1(2022 年 9 月)
Android Studio Chipmunk | 2021.2.1(2022 年 5 月)
Android Studio Bumblebee | 2021.1.1(2022 年 1 月)
Android Studio Arctic Fox | 2020.3.1(2021 年 7 月)
新版本编号系统
更改了 Android Studio 的版本编号系统,使其与 IntelliJ IDEA(Android Studio 所基于的 IDE)更一致。
<Year of IntelliJ Version>.<IntelliJ major version>.<Studio major version>.<Studio minor/patch version>
前两组数字表示特定 Android Studio 版本所基于的 IntellIj 平台版本。对于此版本,即为 2020.3。
第三组数字表示 Studio 的主要版本,从 1 开始,每个主要版本递增 1。
第四组数字表示 Studio 的次要版本/补丁程序版本,从 1 开始,每个次要版本递增 1。
此外,我们还将为每个主要版本提供版本名称,分别以 A 到 Z 的动物来命名。此版本名为 Arctic Fox。
更新了 Android Gradle 插件的版本编号系统
我们更新了 Android Gradle 插件 (AGP) 的版本编号系统,以使其更接近底层 Gradle 构建工具。因此,AGP 7.0 是继 AGP 4.2 之后的下一个版本。
Android Gradle 插件 7.0.0
支持 Jetpack Compose 工具
4.2.0 (2021年4月)
Android Gradle插件 4.2.0
Android Studio运行时,Gradle构建工具会使用studio所捆绑的JDK。之前的版本,与Studio捆绑的是JDK8,4.2开始捆绑的是JDK11。
4.1.0
3.6 (2020年2月25日)
3.5 (2019年8月)
3.5.1 (2019年10月)
- 推荐内存设置 File > Settings(macOS 系统上选择 Android Studio > Preferences) Appearance & Behavior > System Settings
Apply Changes
,可让您将代码和资源更改推送到正在运行的应用,而无需重启应用。Apply Changes 使用搭载 Android 8.0(API 级别 26)或更高版本的设备上支持的 Android JVMTI 实现中的功能。- 应用部署流程。新增设备列表菜单,可快速选择部署到哪个设备。也可以一次在多个设备上运行应用。
- 改进了 Gradle 同步和缓存检测功能
- Chrome OS Support
- IntelliJ IDEA 2019.1
- Android Gradle plugin 3.5.0 updates
3.4 (2019年4月)
3.4.2 (2019年7月)
3.4.1 (2019年5月)
3.4.0
- IntelliJ IDEA 2018.3.4
- Android Gradle plugin 3.4.0
- New Project Structure Dialog
- Variables
- Modules
- Dependencies
- Build Variants
- Suggestions
- New Resource Manager
- R8 enabled by default
- New intention action to quickly import dependencies
R8
gradle.properties可以做如下设置:
# Disables R8 for Android Library modules only.
android.enableR8.libraries = false
# Disables R8 for all modules.
android.enableR8 = false
**Note: **For a given build type, if you set useProguard to false in your app module’s build.gradle file, the Android Gradle plugin uses R8 to shrink your app’s code for that build type, regardless of whether you disable R8 in your project’s gradle.properties file.
3.3 (2019年1月)
- IntelliJ IDEA 2018.2.2
- Delete unused Android Studio directories
- Lint improvements
- Create New Project wizard
- Profiler updates
- Automatic downloading of SDK components
- Support for Clang-Tidy
- CMake version 3.10.2
3.0 (2017年10月)
- Android Plugin for Gradle 3.0.0
- Kotlin support
- Java 8 language features support
- Android Profiler replaces the Android Monitor tool
- APK profiling and debugging
- Device File Explorer This replaces the filesystem tool available in DDMS.
- Instant Apps support
- Android Things modules 物联网设备上的应用开发
- Adaptive Icons wizard
- Support for font resources
- URL intent-filter validator
- Preview for D8 DEX compiler
- Google’s Maven repository
Android Studio 3.0 includes an optional new DEX compiler called D8. It will eventually replace the DX compiler, but you can opt-in to use the new D8 compiler now.
Native debugging with Android Studio no longer supports 32-bit Windows.