Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm using the eclipse compiler on Android Studio 3.6.1 Nothing useful showing on google

like image 683
siman Avatar asked Mar 19 '20 19:03

siman


1 Answers

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.

Example:

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.

like image 70
Zhefang Wu Avatar answered Nov 17 '22 22:11

Zhefang Wu