Thread
#compose
    amar_1995

    amar_1995

    2 years ago
    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) }
    }
    }
    henrikhorbovyi

    henrikhorbovyi

    2 years ago
    If you figure it out tell me please, cause I got the same error 😄
    amar_1995

    amar_1995

    2 years ago
    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.
    henrikhorbovyi

    henrikhorbovyi

    2 years ago
    What version are you using? dev14?
    amar_1995

    amar_1995

    2 years ago
    Yes
    henrikhorbovyi

    henrikhorbovyi

    2 years ago
    Same here. 😞 I returned to
    dev13
    and it solved
    amar_1995

    amar_1995

    2 years ago
    And I tried using older paging library
    'androidx.paging:paging-runtime-ktx:2.1.2'
    and that resolves the issue
    henrikhorbovyi

    henrikhorbovyi

    2 years ago
    Cool! 👏 At least it worked