简体   繁体   English

RxJava对Room的支持与RxJava一样吗

[英]Is RxJava support for Room the same as RxJava

There is now a RxJava support library for Room , and so I was wondering if I can remove RxJava library from my Android project, or use both together? 现在有一个Room的RxJava支持库 ,所以我想知道是否可以从我的Android项目中删除RxJava库,或者一起使用? I noticed that the Room support version has the same functionalities as RxJava (I am just using it for accessing a local database). 我注意到Room支持版本具有与RxJava相同的功能(我只是使用它来访问本地数据库)。

No, room-rxjava2 library has RxRoom which in turn depends on the components from rxjava2 library. 不, room-rxjava2库具有RxRoom ,该库又取决于rxjava2库中的组件。 Therefore build will fail in the case of excluding rxjava2 library from the project dependencies. 因此,在从项目依赖项中排除rxjava2库的情况下,构建将失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM