记录一次WorkManager异常[ java.lang.NoClassDefFoundError]

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/work/impl/utils/futures/AbstractFuture;

Caused by: java.lang.ClassNotFoundException: androidx.work.impl.utils.futures.AbstractFuture

Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/common/util/concurrent/ListenableFuture;


Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.common.util.concurrent.ListenableFuture" on path: DexPathList[


项目中如下配置

如有这个,移除
    configurations {
//        all*.exclude group: 'com.google.guava', module: 'listenablefuture'
    }

你可能感兴趣的:(记录一次WorkManager异常[ java.lang.NoClassDefFoundError])