其他分享
首页 > 其他分享> > 关于报错Didn't find class "androidx.constraintlayout.ConstraintLayout" on path: DexPathLi

关于报错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

wng2010 发布了2 篇原创文章 · 获赞 1 · 访问量 1222 私信 关注

标签:lang,java,androidx,ClassLoader,Didn,constraintlayout,报错,class
来源: https://blog.csdn.net/wng2010/article/details/104493768