解决 Didn‘t find class “androidx.core.app.CoreComponentFactory“ on path: DexPathList[[]

线上有很多问题,仔细看logcat发现了这个异常:

Didn't find class "androidx.core.app.CoreComponentFactory" on path: DexPathList[[],nativeLibraryDirectories=[/data/app/com.xxxx.com-G0iZxv0fI40gORs0YEGc5Q==/lib/arm64, /data/app/com.xxxx.com-G0iZxv0fI40gORs0YEGc5Q==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]

解决办法:

在gradle.properties 中加入

android.enableR8=false

亲测没有异常。

猜你喜欢

转载自blog.csdn.net/qq_33721320/article/details/124153640
今日推荐