跳转到相应内容

最常访问

最近访问

navigation

Release Notes

This page provides information about the releases of Architecture Components, including known issues, limitations, and general advisories. Please review the notes before using the Architecture Components.

Your feedback is crucial. Please report issues with Issue Tracker, so we can we can integrate your feedback into the final release.

To discuss issues or ideas with other developers working with Architecture Components, join the Android Development Google+ community and see the Architecture Components category.

April 5, 2018

Room 1.1.0-beta2, Paging 1.0.0-beta1, and Paging RxJava 1.0.0-alpha1 are released.

Paging will be in beta for a short time before progressing to release candidate. We are not planning further API changes for Paging 1.0, and the bar for any API changes is very high.

Alpha RxJava2 support for Paging is released as a separate optional module (android.arch.paging:rxjava2:1.0.0-alpha1) and will temporarily be versioned separately until it stabilizes.

This new library provides an RxJava2 alternative to LivePagedListBuilder, capable of constructing Observables and Flowables, taking Schedulers instead of Executors:

Observable<PagedList<Item>> pagedItems =
        RxPagedListBuilder(myDataSource, /* page size */ 50)
                .setFetchScheduler(myNetworkScheduler)
                .buildObservable();

Paging

New Features

API Changes

Bug Fixes

Room

Bug Fixes

March 21, 2018

Room 1.1.0-beta1, Paging 1.0.0-alpha7 and Lifecycles 1.1.1 are released.

Room

API Changes

Bug Fixes

Lifecycles

Only one small change: android.arch.core.util.Function is moved from arch:runtime to arch:common. This allows it to be used without the runtime dependency, e.g. in paging:common below.

lifecycle:common is a dependency of lifecycle:runtime, so this change doesn’t affect lifecycle:runtime directly, only modules that depend directly on lifecycle:common, as Paging does.

Paging

Paging 1.0.0-alpha7 is released alongside Lifecycles 1.1.1. As Paging alpha7 depends on the move of the Function class mentioned above, you will need to update your lifecycle:runtime dependency to android.arch.lifecycle:runtime:1.1.1.

Paging alpha7 is planned to be the final release before Paging hits beta.

API Changes

Bug Fixes

March 2, 2018

Room 1.1.0-alpha3 is released. This is the last planned alpha release for Room 1.1.0.

API Changes

Bug Fixes

February 27, 2018

Paging 1.0.0-alpha6 is released alongside Support Library release 27.1.0. ListAdapter and a few related classes have been moved from the Paging Library directly to Recyclerview, alongside a few renames to make the function of certain classes clearer. This alpha release of paging is likely the last to have significant API breaking changes.

API Changes:

The classes that were moved were useful alongside RecyclerView, independent of the Paging Library. This means they can be used without depending upon a Paging alpha release, but also means apps using Paging must upgrade to Alpha 6, and Support Library 27.1.0 at the same time.

Migration guide for Paging Alpha6:

Bug Fixes

February 15, 2018

Room 1.1.0-alpha2 is released.

New Features

Bug Fixes

January 22, 2018

Lifecycles 1.1.0, Room 1.1.0-alpha1 and Paging 1.0.0-alpha5 are released.

Lifecycle 1.1.0:

Packaging Changes:

New, much smaller dependencies are now available:

API Changes:

Room 1.1.0-alpha1:

New Features:

Bug Fixes:

Paging 1.0.0-alpha5:

Bug Fixes:

December 11, 2017

Paging alpha4-1 is released. This is a small bugfix release for Paging alpha 4.

Bug Fixes:

December 7, 2017

Paging alpha4 is released, with significant changes and additions, mostly targeting network, and network + database usecases.

API Changes:

Bug Fixes:

1.0.0 - November 6, 2017

All major components (except Paging) are now 1.0.0. This is the exact same release as rc1 except for one change to the reactivestreams library.

Bug Fixes:

Release Candidate - October 18, 2017

All major artifacts (except Paging) are now 1.0.0-rc1.

We do not have any more known issues or new features scheduled for the 1.0.0 release. Please upgrade your projects to use 1.0.0-rc1 and help us to battle test it so that we can ship a rock solid 1.0.0.

Behavior Change:

Bug Fixes:

October 9, 2017

Paging alpha-3 is released; which makes it compatible with the beta 2 release of Lifecycles and Room.

Bug Fixes: * Improved Paging documentation.

October 5, 2017

All major artifacts (except Paging) are now beta 2. There is no new version of Paging in this release.

Bug Fixes:

September 21, 2017

With this release, all Architecture Components modules reach to at least beta 1 (except the new Paging Library which is alpha 2).

We are not planning any more API changes. Unplanned changes might happen, but the bar for changing any API before 1.0.0 stable is very high and unlikely to happen.

Unlike the alpha phase, beta phase is scheduled to be a very short duration.

Version Changes

New Artifacts

Packaging Changes

Both of these artifacts are already a dependency on Room so unless you were directly using them, you should not need to change anything in your build files.

API Changes

Bug Fixes:

1.0.0 Alpha 9-1 - September 13, 2017

This is a major release where core lifecycle artifacts (runtime, common) and arch core (common) reach to stable version 1.0.0.

Along with this change, Support Library 26.1.0 now depends on these libraries. Both AppCompatActivity and Support Fragment now implement the LifecycleOwner interface.

This release also depends on Support Library 26.1.0 to take advantage of the new integration.

New Library: Paging

This release also includes a new library called Paging, which allows easily loading large data sets into a RecyclerView in chunks when necessary. Paging is released as alpha1 and will have its own release cycle.

API Changes

Bug fixes

1.0.0 Alpha 9 - August 16, 2017

Bug fixes

1.0.0 Alpha 8 - August 1, 2017

Behavior Changes

API Changes

1.0.0 Alpha 7 - July 26, 2017

Bug fixes

1.0.0 Alpha 6 - July 25, 2017

Behavior changes

API Changes

Bug fixes

1.0.0 Alpha 5 - July 18, 2017

API Changes

You need to depend on android.arch.persistence.room:rxjava2 artifact to add RxJava support to Room.

Bug fixes

1.0.0 Alpha 4 - July 11, 2017

API Changes

Bug Fixes

1.0.0 Alpha 3 - June 15, 2017

API Changes

Bug Fixes

1.0.0 Alpha 2 - June 2, 2017

API Changes

Bug Fixes

1.0.0 Alpha 1 - May 17, 2017

MinSDK: 14

General advisories

Known limitations and issues

此网站会使用 Cookie 来存储您在此网站上指定的语言和显示选项偏好设置。

获取最新的 Android Developers 资讯和提示,助您在 Google Play 上取得成功。

* 必填字段

成功!

在微信上关注 Google Developers

要以浏览此网站吗?

您请求访问的是网页,但是您为此网站设置的语言偏好为

要更改您的语言偏好设置并以浏览此网站吗?如果以后您想要更改语言偏好设置,请使用每个页面底部的语言菜单。

该类需要 或更高的 API 级别

此文档已被隐藏,因为您为该文档选择的 API 级别是 。您可以使用左侧导航栏上方的选择器来更改文档的 API 级别。

要详细了解如何根据您的应用需求指定 API 级别,请参阅支持不同平台版本

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)