透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Arch Core
其他 arch 依附元件的輔助函式,包括可與 LiveData 搭配使用的 JUnit 測試規則。
最近更新時間 |
穩定版 |
候選版 |
Beta 版 |
Alpha 版 |
2023 年 2 月 22 日 |
2.2.0 |
- |
- |
- |
意見回饋
您的意見可協助我們改善 Jetpack。如果您發現新問題,或是有改進這個程式庫的建議,請告訴我們。回報新問題前,請先查看這個程式庫的現有問題。只要按一下星號按鈕,即可投票給現有的問題。
建立新問題
詳情請參閱 Issue Tracker 說明文件。
2.2 版
2.2.0 版
2023 年 2 月 22 日
發布 androidx.arch.core:core-common:2.2.0
、androidx.arch.core:core-runtime:2.2.0
和 androidx.arch.core:core-testing:2.2.0
。2.2.0 版包含這些修訂版本。
自 2.1.0 版以來的重要異動
- 為先前未指定為
@NonNull
或 @Nullable
的許多 API 新增正確的可空值性。如果您的 Kotlin 程式碼對是否可為空值的推論錯誤,可能會遇到與原始碼不相容的問題
2.2.0-rc01 版
2023 年 2 月 8 日
發布 androidx.arch.core:core-common:2.2.0-rc01
、androidx.arch.core:core-runtime:2.2.0-rc01
和 androidx.arch.core:core-testing:2.2.0-rc01
,但沒有任何異動。2.2.0-rc01 版包含此連結所列的修訂項目。
2.2.0-beta01 版
2023 年 1 月 25 日
發布 androidx.arch.core:core-common:2.2.0-beta01
、androidx.arch.core:core-runtime:2.2.0-beta01
和 androidx.arch.core:core-testing:2.2.0-beta01
,但沒有任何異動。2.2.0-beta01 版包含這些修訂項目。
2.2.0-alpha01 版
2023 年 1 月 11 日
發布 androidx.arch.core:core-common:2.2.0-alpha01
、androidx.arch.core:core-runtime:2.2.0-alpha01
和 androidx.arch.core:core-testing:2.2.0-alpha01
。2.2.0-alpha01 版本包含這些修訂版本。
API 變更
2.1.0 版本
2.1.0 版本
2019 年 9 月 5 日
發布 androidx.arch.core:core-common:2.1.0
、androidx.arch.core:core-runtime:2.1.0
和 androidx.arch.core:core-testing:2.1.0
。您可以前往這裡查看這個版本包含的修訂項目。
自 2.0.1 版以來沒有顯著的公開變更
2.1.0-rc01 版本
2019 年 7 月 2 日
發布 androidx.arch.core:core-common:2.1.0-rc01
、androidx.arch.core:core-runtime:2.1.0-rc01
和 androidx.arch.core:core-testing:2.1.0-rc01
,且自 2.1.0-beta01
版以來皆無異動。您可以前往這裡查看這個版本包含的修訂項目。
2.1.0-beta01 版
2019 年 5 月 7 日
發布了 androidx.arch.core:*:2.1.0-beta01
。您可以前往這裡查看這個版本包含的修訂項目。
API 相關異動
2.1.0-alpha02 版本
2019 年 4 月 25 日
已釋出 androidx.arch.core:*:2.1.0-alpha02
。您可以前往這裡查看這個版本包含的修訂項目。
API 變更
2.1.0-alpha01 版本
2019 年 4 月 3 日
發布 androidx.arch.core:*:2.1.0-alpha01
。您可以前往這裡查看這個版本包含的修訂項目。
新功能
2.0.1 版本
2.0.1 版本
2019 年 3 月 22 日
已釋出 androidx.arch.core
構件群組的 2.0.1 版,其中僅有一個調整:
- ArchExecutor 中的執行緒數量上限從 2 個增加到 4 個。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Arch Core\n=========\n\nAPI Reference \n[androidx.arch.core.executor.testing](/reference/kotlin/androidx/arch/core/executor/testing/package-summary) \n[androidx.arch.core.util](/reference/kotlin/androidx/arch/core/util/package-summary) \nHelper for other arch dependencies, including JUnit test rules that can be used with LiveData. \n\n| Latest Update | Stable Release | Release Candidate | Beta Release | Alpha Release |\n|-------------------|-----------------------------------------------------|-------------------|--------------|---------------|\n| February 22, 2023 | [2.2.0](/jetpack/androidx/releases/arch-core#2.2.0) | - | - | - |\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:197448%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=197448&template=878802)\n\nSee the [Issue Tracker documentation](https://developers.google.com/issue-tracker)\nfor more information.\n\nVersion 2.2\n-----------\n\n### Version 2.2.0\n\nFebruary 22, 2023\n\n`androidx.arch.core:core-common:2.2.0`, `androidx.arch.core:core-runtime:2.2.0`, and `androidx.arch.core:core-testing:2.2.0` are released. [Version 2.2.0 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/e4d01e766eec76322a514a161797b8189f4b194b..d00300b06c00dbf348f871980400948cdf7b10dc/arch/core)\n\n**Important changes since 2.1.0**\n\n- Added the correct nullability to many APIs that previously did not specify whether they were `@NonNull` or `@Nullable`. This may be source incompatible if your Kotlin code was assuming the wrong nullability.\n\n### Version 2.2.0-rc01\n\nFebruary 8, 2023\n\n`androidx.arch.core:core-common:2.2.0-rc01`, `androidx.arch.core:core-runtime:2.2.0-rc01`, and `androidx.arch.core:core-testing:2.2.0-rc01` are released with no changes. [Version 2.2.0-rc01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/e5dad1e7d1c225f89f7c2d5a39a7a0de8d637d7b..e4d01e766eec76322a514a161797b8189f4b194b/arch/core)\n\n### Version 2.2.0-beta01\n\nJanuary 25, 2023\n\n`androidx.arch.core:core-common:2.2.0-beta01`, `androidx.arch.core:core-runtime:2.2.0-beta01`, and `androidx.arch.core:core-testing:2.2.0-beta01` are released with no changes. [Version 2.2.0-beta01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/adf1c279a86ab3886e1666c08e2c3efba783367b..e5dad1e7d1c225f89f7c2d5a39a7a0de8d637d7b/arch/core)\n\n### Version 2.2.0-alpha01\n\nJanuary 11, 2023\n\n`androidx.arch.core:core-common:2.2.0-alpha01`, `androidx.arch.core:core-runtime:2.2.0-alpha01`, and `androidx.arch.core:core-testing:2.2.0-alpha01` are released. [Version 2.2.0-alpha01 contains these commits.](https://android.googlesource.com/platform/frameworks/support/+log/4b0aad67b0808159e777de3df1dfd347071e366f..adf1c279a86ab3886e1666c08e2c3efba783367b/arch/core)\n\n**API Changes**\n\n- Added the correct nullability to many APIs that previously did not specify whether they were `@NonNull` or `@Nullable`. This may be source incompatible if your Kotlin code was assuming the wrong nullability. ([I34b6b](https://android-review.googlesource.com/#/q/I34b6b636572f1bce61d38af563b4a989aa108f82), [b/236472329](https://issuetracker.google.com/issues/236472329), [b/236472101](https://issuetracker.google.com/issues/236472101), [b/236472102](https://issuetracker.google.com/issues/236472102), [b/236471987](https://issuetracker.google.com/issues/236471987), [b/236472078](https://issuetracker.google.com/issues/236472078), [b/236472176](https://issuetracker.google.com/issues/236472176), [b/236471905](https://issuetracker.google.com/issues/236471905), [b/236472103](https://issuetracker.google.com/issues/236472103))\n\nVersion 2.1.0\n-------------\n\n### Version 2.1.0\n\nSeptember 5, 2019\n\n`androidx.arch.core:core-common:2.1.0`, `androidx.arch.core:core-runtime:2.1.0`, and `androidx.arch.core:core-testing:2.1.0` are released. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/031e16ab465321fba520b9977ed2972def14b7de..4b0aad67b0808159e777de3df1dfd347071e366f/arch).\n\nNo notable public changes changes since 2.0.1\n\n### Version 2.1.0-rc01\n\nJuly 2, 2019\n\n`androidx.arch.core:core-common:2.1.0-rc01`, `androidx.arch.core:core-runtime:2.1.0-rc01`, and `androidx.arch.core:core-testing:2.1.0-rc01` are released with no changes from `2.1.0-beta01`. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/fbdc0c35696b2e1ee3216e3e8c397aeb1abe4311..031e16ab465321fba520b9977ed2972def14b7de/arch).\n\n### Version 2.1.0-beta01\n\nMay 7, 2019\n\n`androidx.arch.core:*:2.1.0-beta01` is released. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/c5af1d83cdaec5dff1d4bdefe93d0a24bd1fec89..fbdc0c35696b2e1ee3216e3e8c397aeb1abe4311/arch).\n\n**API changes**\n\n- Breaking change: the previously deprecated `Cancellable` class has been removed. ([aosp/952616](https://android-review.googlesource.com/952616))\n\n### Version 2.1.0-alpha02\n\nApril 25, 2019\n\n`androidx.arch.core:*:2.1.0-alpha02` is released. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/479525251389167f9bed63ec4e1485a2ceec0aa7..1d1a928881b4a7a75a85ab5b723cc81c829f1c83/arch).\n\n**API Changes**\n\n- The `Cancellable` interface has been deprecated due to a lack of composable infrastructure and its removal from public API in [androidx.activity 1.0.0-alpha07](/jetpack/androidx/releases/activity#1.0.0-alpha07). ([aosp/945461](https://android-review.googlesource.com/945461))\n\n### Version 2.1.0-alpha01\n\nApril 3, 2019\n\n`androidx.arch.core:*:2.1.0-alpha01` is released. The commits included in this version can be found [here](https://android.googlesource.com/platform/frameworks/support/+log/845cc95561b0c5370e341e6d7640afeda55718a2..479525251389167f9bed63ec4e1485a2ceec0aa7/arch).\n\n**New features**\n\n- Added a new `Cancellable` interface to `core-common` to represent cancellable operations. See [androidx.activity 1.0.0-alpha05](/jetpack/androidx/releases/activity#1.0.0-alpha05). ([aosp/922523](https://android-review.googlesource.com/922523))\n\nVersion 2.0.1\n-------------\n\n### Version 2.0.1\n\nMarch 22, 2019\n\nVersion 2.0.1 of the `androidx.arch.core` artifact group is released with a single adjustment:\n\n- Maximum number of threads in the ArchExecutor is increased from 2 to 4."]]