关于报错Didn't find class "androidx.constraintlayout.ConstraintLayout" on path: DexPathLi

最近做项目遇到一个问题报错,记录一下

 Error inflating class androidx.constraintlayout.ConstraintLayout

。。。

 Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.constraintlayout.ConstraintLayout" on path: DexPathList[[zip file "-E-he7ykjYpR2XvYaN3keQA==/base.apk"],nativeLibraryDirectories=4, /-he7ykjYpR2XvYaN3keQA==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

。。。

 

导致这种问题除了常见的build.gradle配置之外,还有一种可能就是 APP 和libs中的资源名字冲突, 比如同时命名activity_main.xml

关于报错Didn't find class "androidx.constraintlayout.ConstraintLayout" on path: DexPathLi关于报错Didn't find class "androidx.constraintlayout.ConstraintLayout" on path: DexPathLi wng2010 发布了2 篇原创文章 · 获赞 1 · 访问量 1222 私信 关注
上一篇:十六、陈述段


下一篇:The current path, page/, didn't match any of these