Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Android Studio 2.1 (Tháng 4/2016)
Những thay đổi chính trong bản cập nhật này sẽ hỗ trợ bạn phát triển ứng dụng bằng Bản xem trước 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>
Phiên bản 2.1.2 (Tháng 6/2016)
Bản cập nhật này có một số thay đổi nhỏ và các bản sửa lỗi như sau:
- Bản cập nhật và bản sửa lỗi cho tính năng Chạy tức thì.
- Cải thiện hiệu suất của LLDB và thông báo lỗi.
- Khắc phục lỗi hồi quy trong bản cập nhật bảo mật Android Studio 2.1.1 khiến
git rebase
không hoạt động được.
Phiên bản 2.1.1 (Tháng 5/2016)
Bản phát hành cập nhật về bảo mật.
Nền tảng Android N thêm tính năng hỗ trợ cho các tính năng trong ngôn ngữ Java 8. Các tính năng này cần có một trình biên dịch thử nghiệm mới có tên là Jack. Phiên bản Jack mới nhất hiện chỉ được hỗ trợ trong Android Studio 2.1. Vì vậy, nếu muốn sử dụng các tính năng trong ngôn ngữ Java 8, bạn cần dùng Android Studio 2.1 để xây dựng ứng dụng.
Lưu ý: Tính năng Chạy tức thì bị tắt khi bạn bật trình biên dịch Jack vì chúng hiện không tương thích.
Mặc dù Android Studio 2.1 hiện là bản chính thức, nhưng trình biên dịch Jack vẫn là bản thử nghiệm và bạn phải bật trình biên dịch này bằng thuộc tính jackOptions
trong tệp build.gradle
.
Ngoài các thay đổi để hỗ trợ Bản xem trước N, Android Studio 2.1 bao gồm các bản sửa lỗi nhỏ và các tính năng nâng cao sau đây:
- Trình gỡ lỗi C++ có khả năng nhận biết Java hiện được bật theo mặc định khi bạn đang sử dụng thiết bị hoặc trình mô phỏng N, đồng thời bạn chọn chế độ trình gỡ lỗi Native (Gốc) (trong thẻ Debugger (Trình gỡ lỗi) cho cấu hình chạy/gỡ lỗi).
Đối với các tính năng bản dựng nâng cao khác, bao gồm tính năng biên dịch Java tăng dần và tính năng tạo tệp dex trong quy trình tạo bản dựng, hãy cập nhật trình bổ trợ Android cho Gradle lên phiên bản 2.1.0.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-09-03 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-09-03 UTC."],[],[],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"]]