Today the gradle project suddenly encountered a problem and could not find the gdx-sources.jar
// The following is a conjecture, which is not verified
The server code was changed by using the old project. Based on maven, The GDX dependency library was added to the modification process.
~ /. Gradle/caches has the gradle cache. When the gradle project is built, the jar related to GDX is here
Later, Maven added GDX, its library ~ /. M2/repository has a part of GDX jar, no gdx-sources.jar !!!
The gradle project contains mavenlocal (). It is estimated that the maven library is used to find GDX first, and then it is found that (he does not know all of them), and no other jar is available.
Comment out mavenlocal (), refresh, OK ~!!!
I looked at my gradle and used the option recommended by idea. The version is 1.11.
Google gradle caches Maven keyword. It seems that version 1.4 does not have this problem.
Try:
Cancel mavenlocal () Comments and change gradle version to 2.0 to re-open the project.
... The link times out. gradle2.0 cannot automatically download it, but the network does not work ~~~ Try again the next day