I get this error when I try to build my app:
Error:Module 'MyApp' production: java.lang.NoClassDefFoundError: com/android/resources/ResourceFolderType
I use Android Studio 4.1, flutter and dart. I've searched, what feels to be the entire internet, but found no solutions. There are some posts here on SO that describes the difference between NoClassDefFoundErrorand ClassNotFoundException (IE), but no hints on how to resolve this. Or more likely not explained in a sufficient dumbed down manner so I can understand it...
It seems to me that ResourceFolderType is suppose to exsits somewhere, URL, but that doesn't help me either.
My futter doctor looks like this:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.0, on Microsoft Windows [Version 10.0.18363.1379], locale nb-NO)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] Connected device (3 available)
• No issues found!
Any hints or pointers on what to do would be very much appreciated. Even just a link to the one site on the web I have not visited yet that describes a solution...