小编use*_*867的帖子

Android Room Persistence Library Proguard配置

我正在使用Android Room Persistence Library 1.0.0-alpha5.使用ProGuard进行编译时出现以下错误.

Warning:android.arch.persistence.room.paging.LimitOffsetDataSource: can't find superclass or interface android.arch.util.paging.CountedDataSource
Warning:android.arch.persistence.room.paging.LimitOffsetDataSource: can't find referenced class android.arch.util.paging.CountedDataSource
Warning:android.arch.persistence.room.paging.LimitOffsetDataSource$1: can't find referenced method 'void invalidate()' in program class android.arch.persistence.room.paging.LimitOffsetDataSource
Warning:there were 5 unresolved references to classes or interfaces.
Warning:there were 1 unresolved references to program class members.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Run Code Online (Sandbox Code Playgroud)

我的房间ProGuard配置如下

-dontwarn okio.**
-dontwarn javax.annotation.Nullable
-dontwarn javax.annotation.ParametersAreNonnullByDefault
# Platform calls Class.forName on types which do not exist on Android to     determine platform. …
Run Code Online (Sandbox Code Playgroud)

android proguard android-proguard android-room

5
推荐指数
1
解决办法
5832
查看次数