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.
hiệu suất
Cung cấp chú thích nguồn để tối ưu hoá hiệu suất.
Bản cập nhật mới nhất |
Bản phát hành ổn định |
Bản phát hành dùng thử |
Bản phát hành beta |
Bản phát hành alpha |
Ngày 15 tháng 1 năm 2025 |
- |
- |
- |
1.0.0-alpha01 |
Khai báo phần phụ thuộc
Để thêm phần phụ thuộc trên hiệu suất, bạn phải thêm kho lưu trữ Google Maven vào dự án. Đọc nội dung Kho lưu trữ Maven của Google để biết thêm thông tin.
Thêm các phần phụ thuộc cho cấu phần phần mềm bạn cần trong tệp build.gradle
cho ứng dụng hoặc mô-đun:
Groovy
dependencies {
//TODO: Confirm these dependencies
implementation "androidx.performance:performance:1.0.0-alpha01"
}
Kotlin
dependencies {
//TODO: Confirm these dependencies
implementation("androidx.performance:performance:1.0.0-alpha01")
}
Để biết thêm thông tin về các phần phụ thuộc, hãy xem bài viết Thêm phần phụ thuộc vào bản dựng.
Ý kiến phản hồi
Ý kiến phản hồi của bạn có thể giúp chúng tôi cải thiện Jetpack. Hãy cho chúng tôi biết nếu bạn phát hiện lỗi mới hoặc có ý tưởng cải thiện thư viện này. Vui lòng xem các lỗi hiện có trong thư viện này trước khi báo một lỗi mới. Bạn có thể thêm lượt bình chọn cho lỗi hiện có bằng cách nhấp vào nút dấu sao.
Báo lỗi mới
Xem tài liệu về Công cụ theo dõi lỗi để biết thêm thông tin.
Không có ghi chú phát hành cho cấu phần phần mềm này.
Phiên bản 1.0
Phiên bản 1.0.0-alpha01
Ngày 15 tháng 1 năm 2025
Phát hành androidx.performance:performance-*:1.0.0-alpha01
. Phiên bản 1.0.0-alpha01 bao gồm các thay đổi sau.
- Các thư viện này thêm một bộ cơ chế tương thích với nền tảng chỉ dành cho mục đích sử dụng nội bộ của androidx. Các thư viện này chỉ được dùng làm phần phụ thuộc triển khai.
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-07-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# performance\n===========\n\nAPI Reference \n[androidx.performance](/reference/kotlin/androidx/performance/package-summary) \nProvides source annotations for performance optimizations. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|------------------|----------------|-------------------|--------------|-----------------------------------------------------------------------|\n| January 15, 2025 | - | - | - | [1.0.0-alpha01](/jetpack/androidx/releases/performance#1.0.0-alpha01) |\n\nDeclaring dependencies\n----------------------\n\nTo add a dependency on performance, you must add the Google Maven repository to your\nproject. Read [Google's Maven repository](/studio/build/dependencies#google-maven)\nfor more information.\n\nAdd the dependencies for the artifacts you need in the `build.gradle` file for\nyour app or module: \n\n### Groovy\n\n```groovy\ndependencies {\n //TODO: Confirm these dependencies\n implementation \"androidx.performance:performance:1.0.0-alpha01\"\n}\n```\n\n### Kotlin\n\n```kotlin\ndependencies {\n //TODO: Confirm these dependencies\n implementation(\"androidx.performance:performance:1.0.0-alpha01\")\n}\n```\n\nFor more information about dependencies, see [Add build dependencies](/studio/build/dependencies).\n\nFeedback\n--------\n\nYour feedback helps make Jetpack better. Let us know if you discover new issues or have\nideas for improving this library. Please take a look at the\n[existing issues](https://issuetracker.google.com/issues?q=componentid:1709068%20status:open)\nin this library before you create a new one. You can add your vote to an existing issue by\nclicking the star button.\n\n[Create a new issue](https://issuetracker.google.com/issues/new?component=1709068&template=2081980)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nThere are no release notes for this artifact.\n\nVersion 1.0\n-----------\n\n### Version 1.0.0-alpha01\n\nJanuary 15, 2025\n\n`androidx.performance:performance-*:1.0.0-alpha01` is released. Version 1.0.0-alpha01 contains [these commits](https://android.googlesource.com/platform/frameworks/support/+log/ad66672b42ec1e9359219e82b7f8189d03df40f5/performance).\n\n- These libraries add a set of platform compatibility mechanisms intended for androidx internal use only. These libraries are used as implementation dependencies only."]]