Most commonly the cause for these errors arre duplicate jar files in yoour userlib directory.
Check the directory to see if you have different versions of the same library and remove to oldest versions.
Use this automated library cleaner tool https://github.com/cinaq/mendix-userlib-cleaner
Just be careful with it. Maybe sometimes it can delete more than necessary but in general it's a cool & helpful automation to clean the entire project of duplicate libs.