透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Android Gradle 外掛程式 2.3.0 版 (2017 年 2 月)
- 依附元件:
|
最低版本 |
預設版本 |
附註 |
Gradle |
3.3 |
3.3 |
詳情請參閱「更新 Gradle」一節。 |
SDK 版本工具 |
25.0.0 |
25.0.0 |
安裝或設定 SDK 版本工具。 |
- 新功能:
-
- 使用 Gradle 3.3 版,當中包含多項效能改善項目和新功能。詳情請參閱 Gradle 版本資訊。
- 建構快取:儲存 Android 外掛程式建構專案時產生的特定輸出內容 (例如未封裝的 AAR 以及經過 DEX 前置處理的遠端依附元件)。使用快取可加快清理建構作業的速度,因為建構系統可在後續建構期間重複使用快取檔案,而不必重新建立這類檔案。在預設情況下,使用 Android 外掛程式 2.3.0 以上版本的專案都會啟用建構快取。詳情請參閱使用建構快取改善建構速度。
- 提供可清除建構快取的
cleanBuildCache
工作。
- 如果您使用的是實驗版本的建構快取 (隨附在舊版外掛程式中),應該將外掛程式更新至最新版本。
- 變更內容:
-
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間: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"]],["上次更新時間: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"]]