Gradle build error cannot resolve io.fabric

详细的错误信息

Error:A problem occurred configuring project ‘:app’.
Could not resolve all dependencies for configuration ‘:app:classpath’.
Could not resolve io.fabric.tools:gradle:1.+.
Required by:
project :app
Could not resolve io.fabric.tools:gradle:1.+.
Failed to list versions for io.fabric.tools:gradle.
Unable to load Maven meta-data from https://maven.fabric.io/public/io/fabric/tools/gradle/maven-metadata.xml.
Could not GET ‘https://maven.fabric.io/public/io/fabric/tools/gradle/maven-metadata.xml’.
Connect to 127.0.0.1:51566 [/127.0.0.1] failed: Connection refused

这个错误信息好像是连接到了本地,连接还被拒绝了,厉害了。。。。

经过一番谷歌,终于找到一个解决的办法,在此记录一下

解决

For me it worked just File->Invalidate Cache/Restart, so do Invalidate and Restart.

原文链接

此文只是记录一下遇到的问题,不喜勿喷,蟹蟹!!!!

    原文作者:程序猿isMe
    原文地址: https://www.jianshu.com/p/a3af9aa4f0ca
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞