Search code examples
androidandroid-gradle-pluginandroidxandroid-r8

Missing class: androidx.paging.PositionalDataSource


When processing files with R8 it cannot find androidx.paging.PositionalDataSource:

> Task :minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Missing class: androidx.paging.PositionalDataSource","sources":[{}],"tool":"R8"}

How to mute this warning?


Solution

  • This comes from using Room without the Paging library:

    implementation "androidx.paging:paging-common:3.0.0"
    implementation "androidx.paging:paging-runtime:3.0.0"
    

    While the same -dontwarn still works with R8:

    -dontwarn androidx.paging.PositionalDataSource