透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Android Studio 2.1 (2016 年 4 月)
這個更新版本的主要變更在於支援使用 Android N 預先發布版的開發作業。
<div class="android-updates-box">
<p><b>2.1.3 (August 2016)</b>
</p>
<p>
This update adds compatibility with Gradle 2.14.1, which includes performance
improvements, new features, and an important <a href=
"https://docs.gradle.org/2.14/release-notes#local-privilege-escalation-when-using-the-daemon"
class="external-link">security fix</a>. For more details, see the <a href=
"https://docs.gradle.org/2.14.1/release-notes" class="external-link">Gradle
release notes</a>.
</p>
<p>
By default, new projects in Android Studio 2.1.3 use Gradle 2.14.1. For
existing projects, the IDE prompts you to upgrade to Gradle 2.14.1 and
<a href="/studio/releases/gradle-plugin.html#revisions">Android plugin
for Gradle 2.1.3</a>, which is required when using Gradle 2.14.1 and
higher.
</p>
2.1.2 版 (2016 年 6 月)
這個更新版本包含幾項小幅變更並修正了一些錯誤:
- 更新立即執行功能並修正相關錯誤。
- 改善 LLDB 效能和異常終止通知。
- 修正 Android Studio 2.1.1 版安全性更新中造成
git rebase
失敗的迴歸錯誤。
2.1.1 版 (2016 年 5 月)
安全性版本更新。
Android N 平台現已開始支援 Java 8 語言功能,而這類功能需要使用名為 Jack 的新實驗性編譯器。目前只有 Android Studio 2.1 版支援最新版本的 Jack。因此,如果您想使用 Java 8 語言功能,就必須使用 Android Studio 2.1 版建構應用程式。
注意:如果啟用 Jack 編譯器,系統會停用立即執行功能,因為兩者目前不相容。
雖然 Android Studio 2.1 現為穩定版,但 Jack 編譯器仍處於實驗階段,且必須透過 build.gradle
檔案中的 jackOptions
屬性才能啟用。
除了導入一些變更來支援 N 預先發布版以外,Android Studio 2.1 版還修正了多項小錯誤並提供下列強化項目:
- 如果您使用 N 裝置或模擬器,並在「Debugger」分頁中為執行/偵錯設定選取「Native」偵錯工具模式,系統現在預設會啟用 Java 感知 C++ 偵錯工具。
如需其他建構強化功能 (包括漸進式 Java 編譯和處理中的 DEX 程序),請將 Gradle 適用的 Android 外掛程式更新至 2.1.0 版。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-09-03 (世界標準時間)。
[[["容易理解","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-03 (世界標準時間)。"],[],[],null,["\u003cbr /\u003e\n\nAndroid Studio 2.1 (April 2016)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThe primary changes in this update provide support for development with the\nAndroid N Preview.\n\n\u003cbr /\u003e\n\n \u003cdiv class=\"android-updates-box\"\u003e\n \u003cp\u003e\u003cb\u003e2.1.3 (August 2016)\u003c/b\u003e\n \u003c/p\u003e\n \u003cp\u003e\n This update adds compatibility with Gradle 2.14.1, which includes performance\n improvements, new features, and an important \u003ca href=\n \"https://docs.gradle.org/2.14/release-notes#local-privilege-escalation-when-using-the-daemon\"\n class=\"external-link\"\u003esecurity fix\u003c/a\u003e. For more details, see the \u003ca href=\n \"https://docs.gradle.org/2.14.1/release-notes\" class=\"external-link\"\u003eGradle\n release notes\u003c/a\u003e.\n \u003c/p\u003e\n \u003cp\u003e\n By default, new projects in Android Studio 2.1.3 use Gradle 2.14.1. For\n existing projects, the IDE prompts you to upgrade to Gradle 2.14.1 and\n \u003ca href=\"/studio/releases/gradle-plugin.html#revisions\"\u003eAndroid plugin\n for Gradle 2.1.3\u003c/a\u003e, which is required when using Gradle 2.14.1 and\n higher.\n \u003c/p\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n**2.1.2 (June 2016)**\n\n\nThis update includes a number of small changes and bug fixes:\n\n- [Instant Run](/studio/run#instant-run) updates and bug fixes.\n- Improvements to LLDB performance and crash notifications.\n- Fixed a regression in the Android Studio 2.1.1 security update that caused `git rebase` to fail.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n**2.1.1 (May 2016)**\n\nSecurity release update.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThe Android N platform adds support for [Java 8 language features](/studio/write/java8-support), which\nrequire a new experimental compiler called Jack. The latest version of Jack is\ncurrently supported only in Android Studio 2.1. So if you want to use Java 8\nlanguage features, you need to use Android Studio 2.1 to build your app.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n**Note:** [Instant Run](/tools/building/building-studio#instant-run)\nis disabled when you enable the Jack compiler because they currently are not\ncompatible.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nAlthough Android Studio 2.1 is now stable, the Jack compiler is still\nexperimental and you must enable it with the `jackOptions`\nproperty in your `build.gradle` file.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nOther than the changes to support the N Preview, Android Studio 2.1\nincludes minor bug fixes and the following enhancements:\n\n- The Java-aware C++ debugger is now enabled by default when you're using an N device or emulator and select **Native** debugger mode (in the **Debugger** tab for your run/debug configuration).\n\nFor other build enhancements, including incremental Java compilation\nand dexing-in-process,update your [Android plugin for\nGradle](/tools/revisions/gradle-plugin) to version 2.1.0.\n\n\u003cbr /\u003e"]]