缺少 class:androidx.paging.PositionalDataSource
Missing class: androidx.paging.PositionalDataSource
用 R8 处理文件时找不到 androidx.paging.PositionalDataSource
:
> Task :minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Missing class: androidx.paging.PositionalDataSource","sources":[{}],"tool":"R8"}
如何关闭这个警告?
这来自于在没有 Paging 库的情况下使用 Room:
implementation "androidx.paging:paging-common:3.0.0"
implementation "androidx.paging:paging-runtime:3.0.0"
虽然相同的 -dontwarn
仍然适用于 R8:
-dontwarn androidx.paging.PositionalDataSource
用 R8 处理文件时找不到 androidx.paging.PositionalDataSource
:
> Task :minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Missing class: androidx.paging.PositionalDataSource","sources":[{}],"tool":"R8"}
如何关闭这个警告?
这来自于在没有 Paging 库的情况下使用 Room:
implementation "androidx.paging:paging-common:3.0.0"
implementation "androidx.paging:paging-runtime:3.0.0"
虽然相同的 -dontwarn
仍然适用于 R8:
-dontwarn androidx.paging.PositionalDataSource