Unknown host 'd29vzk4ow07wi7.cloudfront.net'. You may need to adjust the proxy settings in Gradle.
Enable Gradle 'offline mode' and sync project
Learn about configuring HTTP proxies in Gradle
根据网上的资料说是setting -->gradle----> offline modle打钩,但是就会报别的错误;
后来怀疑是访问jcenter时的问题,于是在项目build.gradler 的
jcenter()前添加上mavenCentral();
这样就解决了
网友评论