[Solved] The java gradle project reported an error org.gradle .api.plugins .MavenPlugin

My java gradle project often reports the error org.gradle .api.plugins .MavenPlugin. The error reported was due to a dependency conflict. I tried many methods on the Internet to no avail. This made me very distressed, but fortunately the problem was solved in the end.

First, you need to know the gradle version used by your project. You can query it in the following way:

gradle -v

Finally enter: gradle wrapper -gradle--version <gradle version number>, for example:

gradle wrapper --gradle-version 7.4.2

Solved successfully!

Guess you like

Origin blog.csdn.net/LforikQ/article/details/133930205