Missing class LiveDataReactiveStreams
Asked Answered
S

2

7

I am trying to use new Android Architecture Components. I'dd like to convert Rx Flowable to LiveData with LiveDataReactiveStreams but the class is missing.

Here are my dependencies:

compile "android.arch.lifecycle:runtime:1.0.0-alpha1" compile "android.arch.lifecycle:extensions:1.0.0-alpha1" kapt "android.arch.lifecycle:compiler:1.0.0-alpha1"

Any ideas?

Shrier answered 22/5, 2017 at 11:26 Comment(0)
P
26

You're missing this dependency:

implementation "android.arch.lifecycle:reactivestreams:1.0.0-beta2"

Perdue answered 22/5, 2017 at 12:57 Comment(0)
G
2

FYI: there's a new version:

implementation  'android.arch.lifecycle:reactivestreams:1.1.1'

Also, the link in the original post is pointing to the deprecated version, now I would be ideal to use the next package:

import androidx.lifecycle.LiveDataReactiveStreams

https://developer.android.com/reference/androidx/lifecycle/LiveDataReactiveStreams

Gmt answered 10/2, 2021 at 15:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.