[Solved] Scala signature package has wrong version expected: 5.0 found: 5.2 in package.class

XXX.jar broken
scala signature package has wrong version expected: 5.0 found: 5.2 in package.class

Solution:
add the dependency of the corresponding SDK in pom.xml, and the version must correspond to
if it is Scala, you must find the library of the corresponding version of scala SDK
if it says that Scala 2.12 and 2.13 are compatible, it’s better to choose only 2.12

Read More: