Làm quen với Android Studio for Platform
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 for Platform (ASfP) là Môi trường phát triển tích hợp (IDE) chính thức để phát triển nền tảng Android. Nhờ có công cụ cho nhà phát triển và trình soạn thảo mã mạnh mẽ của IntelliJ IDEA, Android Studio for Platform cung cấp thêm nhiều tính năng giúp bạn nâng cao năng suất khi xây dựng trên Dự án nguồn mở Android (AOSP), chẳng hạn như:
- Hệ thống xây dựng dựa trên Soong
- Một trình mô phỏng nhanh và nhiều tính năng
- Trình gỡ lỗi cho Java, Kotlin và C++
- Công cụ thử nghiệm
- Hỗ trợ C++ và NDK
Trang này giới thiệu các tính năng cơ bản của Android Studio cho Nền tảng. Để nắm được nội dung tóm tắt về các thay đổi mới nhất, hãy xem Ghi chú phát hành của Android Studio cho Nền tảng.
Cấu trúc dự án
Một dự án trong Android Studio for Platform chứa mọi thông tin giúp xác định không gian làm việc cho cơ sở mã AOSP, từ mã nguồn và tài sản cho đến mã kiểm thử và cấu hình bản dựng. Tìm hiểu thêm về cấu trúc dự án.
Hệ thống xây dựng Soong
Soong là hệ thống xây dựng được sử dụng rộng rãi nhất cho các nhà phát triển nền tảng Android. Tổng cộng có 3 loại:
Android Studio for Platform sử dụng hệ thống xây dựng Soong để xây dựng Android. Soong tận dụng công cụ nhân bản GNU Make kati và thành phần hệ thống xây dựng Ninja để tăng tốc các bản dựng của Android.
Tệp bản dựng Soong được gọi là tệp bản thiết kế và có tên là Android.bp
.
Để biết nội dung mô tả chi tiết về định dạng tệp Android.bp
, hãy xem Android.bp.
Trình gỡ lỗi của Android Studio cho Nền tảng cho phép bạn chọn một thiết bị, đặt điểm ngắt trong Java và C++, đồng thời kiểm tra các biến và biểu thức trong thời gian chạy. Tìm hiểu thêm về trình gỡ lỗi.
Android Studio cho Nền tảng hỗ trợ chạy các bài kiểm thử cục bộ (thiết bị) (thông qua atest
). Tìm hiểu thêm về các công cụ kiểm thử.
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-01-30 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-01-30 UTC."],[],[],null,["# Meet Android Studio for Platform\n\nAndroid Studio for Platform (ASfP) is the official Integrated Development\nEnvironment (IDE) for Android platform development. Based on the powerful\ncode editor and developer tools from\n[IntelliJ IDEA](https://www.jetbrains.com/idea/), Android\nStudio for Platform offers even more features that enhance your\nproductivity when building on the Android Open Source Project (AOSP), such as:\n\n- Soong-based build system\n- A fast and feature-rich emulator\n- A debugger for Java, Kotlin, and C++\n- Testing tools\n- C++ and NDK support\n\nThis page provides an introduction to basic Android Studio for\nPlatform features. For a summary of the latest changes, see the\n[Android Studio for Platform release notes](/studio/platform/releases).\n\nProject structure\n-----------------\n\nA project in Android Studio for Platform contains everything that\ndefines your workspace for your AOSP codebase, from source code and\nassets to test code and build configurations. Learn more about the\n[project structure](/studio/platform/projects).\n\nSoong build system\n------------------\n\nSoong is the most widely used build system for Android platform\ndevelopers. There are altogether three:\n\nAndroid Studio for Platform uses the *Soong* build system to build\nAndroid. Soong leverages the\n[kati](https://github.com/google/kati/blob/master/README.md) GNU\nMake clone tool and [Ninja](https://ninja-build.org/) build system\ncomponent to speed up builds of Android.\n\nSoong build files are called *blueprint files* and are named `Android.bp`.\n\nFor a detailed description of the `Android.bp` file format, see\n[Android.bp](https://source.android.com/docs/setup/reference/androidbp).\n\nDebugging tools\n---------------\n\nAndroid Studio for Platform's debugger lets you select a device, set\nbreakpoints in Java and C++, and examine variables and expressions at\nruntime. Learn more about the\n[debugger](/studio/platform/debug).\n\nTesting tools\n-------------\n\nAndroid Studio for Platform supports running local (device) tests (via `atest`).\nLearn more about the [testing](/studio/platform/test) tools."]]