amar_1995
07/02/2020, 6:18 PMAndroidView
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
amar_1995
07/02/2020, 6:19 PMAndroidView(resId = R.layout.paginated_main) {
val myAdapter = MyAdapter()
myList.adapter = myAdapter
lifecycleScope.launch {
@OptIn(ExperimentalCoroutinesApi::class)
myModel.state.collectLatest { myAdapter.submitData(it) }
}
}
henrikhorbovyi
07/02/2020, 8:36 PMamar_1995
07/02/2020, 8:51 PMcompose-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.henrikhorbovyi
07/02/2020, 9:02 PMamar_1995
07/02/2020, 9:23 PMhenrikhorbovyi
07/02/2020, 9:49 PMdev13
and it solvedamar_1995
07/02/2020, 10:07 PM'androidx.paging:paging-runtime-ktx:2.1.2'
and that resolves the issuehenrikhorbovyi
07/03/2020, 12:58 AM