test ext
| 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 19 tháng 5 năm 2026 | - | - | - | 1.0.0-alpha03 |
Khai báo phần phụ thuộc
Để thêm một phần phụ thuộc trên test-ext, 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 { // Use to implement test exts //TODO: Confirm these dependencies implementation "androidx.test.ext:ext:1.0.0-alpha03" // Use to implement test ext complications //TODO: Confirm these dependencies implementation "androidx.test.ext:ext-complications-data-source:1.0.0-alpha03" // (Kotlin-specific extensions) //TODO: Confirm these dependencies implementation "androidx.test.ext:ext-complications-data-source-ktx:1.0.0-alpha03" // Use to implement a ext style and complication editor //TODO: Confirm these dependencies implementation "androidx.test.ext:ext-editor:1.0.0-alpha03" // Can use to render complications. //TODO: Confirm these dependencies // This library is optional and exts may have custom implementation for rendering // complications. //TODO: Confirm these dependencies implementation "androidx.test.ext:ext-complications-rendering:1.0.0-alpha03" }
Kotlin
dependencies { // Use to implement test exts //TODO: Confirm these dependencies implementation("androidx.test.ext:ext:1.0.0-alpha03") // Use to implement test ext complications //TODO: Confirm these dependencies implementation "androidx.test.ext:ext-complications-data-source:1.0.0-alpha03" // (Kotlin-specific extensions) //TODO: Confirm these dependencies implementation "androidx.test.ext:ext-complications-data-source-ktx:1.0.0-alpha03" // Use to implement a ext style and complication editor //TODO: Confirm these dependencies implementation("androidx.test.ext:ext-editor:1.0.0-alpha03") // Can use to render complications. //TODO: Confirm these dependencies // This library is optional and exts may have custom implementation for rendering // complications. //TODO: Confirm these dependencies implementation "androidx.test.ext:ext-complications-rendering:1.0.0-alpha03" }
Để 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.
Xem tài liệu về Trình theo dõi sự cố để biết thêm thông tin.
Phiên bản 1.0
Phiên bản 1.0.0-alpha03
Ngày 19 tháng 5 năm 2026
Phát hành androidx.test.ext:junit-gtest:1.0.0-alpha03. Phiên bản 1.0.0-alpha03 bao gồm các thay đổi sau.
Thay đổi về API
- Không dùng nữa tất cả các API trong junit-gtest. (I355df, b/500007449)
Sửa lỗi
- Thay đổi
minSdkVersionthành 21 để cho phép nâng cấp NDK (Ic748f)