Writing project when it came to a question: Library source does not match the bytecode XXX
then found himself looking for most of the solutions are not the solution to see of the more cold heart
part of the solution is to empty the cache the next test and no use
some solution is to use Gradle I managed it with Maven, which is not very suitable.
Finally,
I tried to solve it by myself. Since the problem has been solved, I ca n’t reproduce it, so I ca n’t take a screenshot to describe it with text:
1. Uninstall the Lombok plugin in IDEA
File-Settings-Plugins search for Lombok and uninstall
2. Go to the error class (that is, the class with a red prompt above) Click Show diff to open a comparison window
(This picture is just for my reference)
3. Then a window will pop up to compare and copy the two files, 报错的该依赖包的路径
and then enter the directory to delete the error file
(This is the catalog of the class I reported is for reference only)
There .jar
and .jar.sha1
these two files with the same name deleted unless they can be assured backup
For me it chestnuts being given source file is spring-data-commons-2.2.6.RELEASE
I will be spring-data-commons-2.2.6.RELEASE-Sources. JAR and spring-data-commons-2.2.6. RELEASE-sources.jar. Sha1 deleted