Didn‘t find class “com.blankj.utilcode.util.Utils$FileProvider4UtilCode“ on path: DexPathList[[dex f

android studio kotlin 编译的报错提示:
在这里插入图片描述
java.lang.RuntimeException: Unable to get provider com.blankj.utilcode.util.Utils$FileProvider4UtilCode: java.lang.ClassNotFoundException: Didn't find class "com.blankj.utilcode.util.Utils$FileProvider4UtilCode" on path: DexPathList[[dex file "/data/data/com.example.mycompose/code_cache/.overlay/base.apk/classes9.dex", zip file "/data/app/~~KHhI-U3u5SiKjIa4sywK3A==/com.example.mycompose-ncHsNdZELcDIOQUuwCqQdw==/base.apk"],nativeLibraryDirectories=[/data/app/~~KHhI-U3u5SiKjIa4sywK3A==/com.example.mycompose-ncHsNdZELcDIOQUuwCqQdw==/lib/x86_64, /system/lib64, /system_ext/lib64]]

可以发现这报错信息中:com.blankj.utilcode.,解决问题:把“implementation "com.blankj:utilcode:1.23.7"”改为“implementation 'com.blankj:utilcodex:1.28.4'

猜你喜欢

转载自blog.csdn.net/qq_35091074/article/details/129898978
今日推荐