在 Android Studio 3.6.1 中获取 java.lang.NoClassDefFoundError: com/android/resources/ResourceFolderType [英] Getting java.lang.NoClassDefFoundError: com/android/resources/ResourceFolderType in Android Studio 3.6.1
问题描述
有没有人在运行项目时见过这个
has anyone seen this before when running a project
Error:Module 'Android' production: java.lang.NoClassDefFoundError: com/android/resources/ResourceFolderType
我在 Android Studio 3.6.1 上使用 eclipse 编译器没有任何有用的显示在 google 上
I'm using the eclipse compiler on Android Studio 3.6.1 Nothing useful showing on google
推荐答案
Jar 文件冲突.
如果您使用 IDE 之类的想法.您可以尝试一个名为 Maven Helper 的插件,以找出导致此错误的依赖项.
Jar file conflict.
If you are using IDE like idea. You can try a plugin named Maven Helper to find out which dependence rise up this error.
同一个jar在你的类路径中同时有两个版本.新版本的Class调用了旧版本的Class的方法,可惜旧版本没有那个方法,然后报错.
The same jar has two versions in your class path at the same time. The new version's Class invoke the old version's Class's method, Unfortunately, the old version dose not have that method, then rise up the error.
这篇关于在 Android Studio 3.6.1 中获取 java.lang.NoClassDefFoundError: com/android/resources/ResourceFolderType的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!