Gradle error when creating a project in Android Studio

Hello!

Faced a problem when creating a new project in the Android Studio environment (at the time of writing the article version 0.3.2).
Operating system Win 7x64, Android SDK v 22.2.1.
The project didn’t want to be created taking off with an error: Could not GET 'http://repo1.maven.org/maven2/com/android/tools/build/gradle/'. Received status code 407 from server: Proxy Authentication Required

I want to say right away that the network is under proxies, and this proxy is specified in the settings of the Http Proxy environment of Android Studio.
Rummaged the entire Internet in search of a problem. It turned out that the proxy must also be set for Gradle.
In order for the project to be created, you need to create the gradle.properties file in the folder C: \ Users \ <Your account> \. Gradle
Keep away from sin account in English, because Some utilities may not perceive the path where Cyrillic is used.
In the file you need to create and fill in the appropriate fields:

systemProp.http.proxyHost =
systemProp.http.proxyPort =
systemProp.http.proxyUser =
systemProp.http.proxyPassword =
systemProp.http.nonProxyHosts =

Also popular now: