Error| Error initializing classpath: Connection timed out: connect(Use--stacktrace to see the full )

Error| Error initializing classpath: Connection timed out: connect(Use--stacktrace to see the full trace)


Grails执行run-app时报错:Error| Error initializing classpath: Connection timed out: connect(Use--stacktrace to see the full trace);

这是因为下载gradle超时引起的;

解决办法:

          a,手动下载需要的gradle版本,如我需要的是:gradle-3.0-all.zip
               下载地址:https://services.gradle.org/distributions/
          b,找到gradle文件夹下的wrapper文件夹,将下载好的gradle粘贴进来
          c,然后将gradle-wrapper.properties里原来的distributionUrl注释掉,换成已经准备好的gradle包所在路径即可
               如我的:

                    Error| Error initializing classpath: Connection timed out: connect(Use--stacktrace to see the full )_第1张图片

      




你可能感兴趣的:(Error| Error initializing classpath: Connection timed out: connect(Use--stacktrace to see the full ))