- Apr 7, 2023
- 2
- 0
- 1
Hello, if I include the following code in build.gradle;
I get the following error when I build the app;
Usage is as follows;
Does anyone know what is happening here?
implementation("androidx.activity:activity-compose:1.8.2")
I get the following error when I build the app;
if I remove it then the app compiles. I import LiveDataReactiveStreams in kotlin code using;Unresolved reference: LiveDataReactiveStreams
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: