赞
踩
每个版本的 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 或更高版本。
更改了 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 插件 (AGP) 的版本编号系统,以使其更接近底层 Gradle 构建工具。因此,AGP 7.0 是继 AGP 4.2 之后的下一个版本。
Android Studio运行时,Gradle构建工具会使用studio所捆绑的JDK。之前的版本,与Studio捆绑的是JDK8,4.2开始捆绑的是JDK11。
3.5.1 (2019年10月)
Apply Changes
,可让您将代码和资源更改推送到正在运行的应用,而无需重启应用。Apply Changes 使用搭载 Android 8.0(API 级别 26)或更高版本的设备上支持的 Android JVMTI 实现中的功能。3.4.2 (2019年7月)
3.4.1 (2019年5月)
3.4.0
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.
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.
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。