Android Kotlin LiveDataReactiveStreams unresolved reference

mobiledev

New member
Apr 7, 2023
2
0
1
Hello, if I include the following code in build.gradle;
implementation("androidx.activity:activity-compose:1.8.2")
I get the following error when I build the app;
Unresolved reference: LiveDataReactiveStreams
if I remove it then the app compiles. I import LiveDataReactiveStreams in kotlin code using;
import androidx.lifecycle.LiveDataReactiveStreams
Usage is as follows;
disposable = Flowable.zip<Resource<ServicesModel>, Resource<MyModel>,
Pair<Resource<ServicesModel>, Resource<MyModel>>>(
LiveDataReactiveStreams.toPublisher(this, servicesViewModel.getServices()),
LiveDataReactiveStreams.toPublisher(
this,
optionsViewModel.getOptions()
)
) { services, options ->
Pair(services, options)
}.doOnError {
binding.progressBar.hideProgressBar(activity)
}.observeOn(AndroidSchedulers.mainThread())
.subscribeOn(Schedulers.computation()).subscribe { (services, options) ->
setServiceListDataFromResponse(services, options)
}
Does anyone know what is happening here?
 
Last edited:
Welcome to Android Central! I moved this to the Software Development forum for more specific traffic.
 

Members online

Forum statistics

Threads
954,544
Messages
6,961,993
Members
3,163,070
Latest member
Jeferson de Jesús