Did you try to compile the application in Eclipse, or do you have automatic compilation turned on in Eclipse?
A common error is Eclipse compiling using a higher version of Java than Mendix can handle. It needs to be Java 11.
if this is the case, disable compilation in Eclipse, and just let Mendix compile the Java when you build the application in Studio Pro.
Good luck.