使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
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 月)
此更新包含多项细微更改和 bug 修复:
- Instant Run 更新和 bug 修复。
- 改进了 LLDB 性能和崩溃通知。
- 修复了 Android Studio 2.1.1 安全更新中会导致
git rebase
失败的回归问题。
2.1.1(2016 年 5 月)
安全版本更新。
Android N 平台增加了对 Java 8 语言功能的支持,这些功能需要一个名为 Jack 的新实验性编译器。最新版本的 Jack 目前仅在 Android Studio 2.1 中受支持。因此,如果您要使用 Java 8 语言功能,就需要使用 Android Studio 2.1 构建应用。
注意:在您启用 Jack 编译器时,Instant Run 处于停用状态,因为这二者当前不兼容。
尽管 Android Studio 2.1 现已稳定运行,但 Jack 编译器仍处于试验阶段,您必须使用 build.gradle
文件中的 jackOptions
属性来启用它。
除了为支持 N 预览版所做的更改外,Android Studio 2.1 还包含一些次要 bug 修复和以下增强功能:
- 现在,当您使用 N 设备或模拟器并选择 Native 调试程序模式(在运行/调试配置对应的 Debugger 标签页中),Java-aware C++ 调试程序默认处于启用状态。
对于其他构建增强功能(包括增量 Java 编译和 dexing-in-process),请将 Android plugin for Gradle 更新到版本 2.1.0。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[],[],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"]]