Search code examples
androidpagingandroid-pagingandroid-paging-3

Use different versions of paging library in the same project


How can I use paging 2 in one module and paging 3 in another module? Now I have paging 3 dependencies pulled into both modules


Solution

  • in the module connection where I used paging 3, I used this code:

    exclude(group = "androidx.paging", module = "paging-runtime")
    exclude(group = "androidx.paging", module = "paging-compose")