使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Android Gradle 插件 2.3.0(2017 年 2 月)
- 依赖项:
|
最低版本 |
默认版本 |
备注 |
Gradle |
3.3 |
3.3 |
如需了解详情,请参阅更新 Gradle。 |
SDK Build Tools |
25.0.0 |
25.0.0 |
安装或配置 SDK Build Tools。 |
- 新功能:
-
- 使用 Gradle 3.3,其中包括性能改进和新功能。如需了解详情,请参阅 Gradle 版本说明。
- 构建缓存:存储构建项目时 Android 插件生成的特定输出(例如,未打包的 AAR 和经过 dex 预处理的远程依赖项)。使用缓存时,整洁 build 的速度会显著加快,因为构建系统在进行后续构建时可以直接重用这些缓存的文件,而无需重新创建。使用 Android 插件 2.3.0 及更高版本的项目在默认情况下会使用构建缓存。如需了解详情,请参阅有关使用构建缓存加快构建速度的文章。
- 加入了清除构建缓存的
cleanBuildCache
任务。
- 如果您使用的是构建缓存的实验性版本(包含在早期版本的插件中),则应将插件更新到最新版本。
- 变更:
-
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-09-05。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-05。"],[],[],null,["\u003cbr /\u003e\n\nAndroid Gradle Plugin 2.3.0 (February 2017) \n**2.3.3 (June 2017)**\n\nThis is a minor update that adds compatibility with\n[Android Studio 2.3.3](/studio/releases#Revisions).\n\n**2.3.2 (May 2017)**\n\nThis is a minor update that adds compatibility with\n[Android Studio\n2.3.2](/studio/releases#Revisions).\n\n**2.3.1 (April 2017)**\n\nThis is a minor update to Android plugin 2.3.0 that fixes an issue\nwhere some physical Android devices did not work properly with\n[Instant Run](/studio/run#instant-run) (see\n[Issue #235879](https://code.google.com/p/android/issues/detail?id=235879)).\n\nDependencies:\nNew:\n:\n - Uses Gradle 3.3, which includes performance improvements and new features. For more details, see the [Gradle release notes](https://docs.gradle.org/3.3/release-notes).\n - **Build cache** : stores certain outputs that the Android plugin generates when building your project (such as unpackaged AARs and pre-dexed remote dependencies). Your clean builds are much faster while using the cache because the build system can simply reuse those cached files during subsequent builds, instead of recreating them. Projects using Android plugin 2.3.0 and higher use the build cache by default. To learn more, read [Improve Build Speed with\n Build Cache](/studio/build/build-cache).\n - Includes a `cleanBuildCache` task that [clears\n the build cache](/studio/build/build-cache#clear_the_build_cache).\n - If you are using the experimental version of build cache (included in earlier versions of the plugin), you should [update your plugin](#updating-plugin) to the latest version.\n\nChanges:\n:\n - Supports changes to Instant Run included in [Android Studio 2.3](/studio/releases).\n - Configuration times for very large projects should be significantly faster.\n - Fixed issues with auto-downloading for the [constraint layout\n library](/training/constraint-layout).\n - Plugin now uses [ProGuard version 5.3.2](https://www.guardsquare.com/en/proguard/manual/versions).\n - Includes many fixes for [reported bugs](https://code.google.com/p/android/issues/list?can=1&q=Component%3DTools++Subcomponent%3DTools-gradle%2CTools-build%2CTools-instantrun%2CTools-cpp-build+Target%3D2.3+status%3AFutureRelease%2CReleased+&sort=priority+-status&colspec=ID+Status+Priority+Owner+Summary+Stars+Reporter+Opened&cells=tiles). Please continue to [file bug reports](/studio/report-bugs) when you encounter issues.\n\n\u003cbr /\u003e"]]