LocationAwareException: A problem occurred configuring root project

Last week, the project did not matter, this project will open on Monday reported Read timeOut

Caused by: org.gradle.internal.exceptions.LocationAwareException: A problem occurred configuring root project 'xxx'

Solution:
First, open your build.gradle
Here Insert Picture Description
Here Insert Picture Description
then repositories of these two folders modified to the following content:

    repositories {
        // maven库
        def cn = "http://maven.aliyun.com/nexus/content/groups/public/"
        def abroad = "http://central.maven.org/maven2/"
        // 先从url中下载jar若没有找到,则在artifactUrls中寻找
        maven {
            url cn
            artifactUrls abroad
        }
        maven { url "http://maven.aliyun.com/nexus/content/repositories/jcenter"}
        google()
    }

Completion of the above operations can be successfully compiled a
pro-active measure, hope it useful to you

Published 43 original articles · won praise 60 · views 6739

Guess you like

Origin blog.csdn.net/yuhang01/article/details/103761786