这个问题在这里已有答案:
RecyclerView 27.1.0和android.arch.paging 1.0.0-alpha4-1都包含android / support / v7 / recyclerview / extensions / ListAdapter.class
有没有人知道如何从分页组件中排除ListAdapter.class?
根据Architecture Components Release Notes,您必须升级到Paging 1.0.0-alpha6以使用支持库27.1.0:
使用Paging的应用程序必须同时升级到Alpha 6和支持库27.1.0
我想你可以这样做
implementation("your dependency"){
exclude group:'com.android.support' module:'recyclerview-v7'
}