Failed to import new Gradle project in android studio

前端 未结 11 1177
长发绾君心
长发绾君心 2020-11-29 23:46

I got the error when i create a new Project using android studio. below i attached a screenshots of error message..\"ent

11条回答
  •  甜味超标
    2020-11-30 00:44

    Check your proxy setting for gradle. If it still fails after set the HTTP Proxy in setting menu, you may add gradle.properties as following.

    First, go to the project directory. (By default-for Windows-, projects will be created to {user}\AndroidStudioProjects\{ProjectName}). And then create gradle.properties file as below.

    systemProp.http.proxyHost=www.somehost.org
    systemProp.http.proxyPort=8080
    systemProp.http.proxyUser=userid
    systemProp.http.proxyPassword=password
    systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
    

    you can also refer to the User's guide.

提交回复
热议问题