I am playing with `AndroidView` and trying to inte...
# compose
a
I am playing with
AndroidView
and trying to integrate legacy pagination library but I am getting this error
jetified-kotlin-stdlib-1.3.71.jar: Runtime JAR file has version 1.3 which is older than required for API version 1.4
My code
AndroidView(resId = R.layout.paginated_main) {
val myAdapter = MyAdapter()
myList.adapter = myAdapter
lifecycleScope.launch {
@OptIn(ExperimentalCoroutinesApi::class)
myModel.state.collectLatest { myAdapter.submitData(it) }
}
}
h
If you figure it out tell me please, cause I got the same error 😄
a
I believe
compose-runtime
is using older version internally. I tried including
compose-runtime
package in gradle in legacy android code and then it also leads to same issue.
h
What version are you using? dev14?
a
Yes
h
Same here. 😞 I returned to
dev13
and it solved
a
And I tried using older paging library
Copy code
'androidx.paging:paging-runtime-ktx:2.1.2'
and that resolves the issue
h
Cool! 👏 At least it worked