📜 ⬆️ ⬇️

Error gradle 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).
Win 7x64, Android SDK v 22.2.1.
The project did not 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

Just want to say that the network is under proxy, and this proxy is specified in the Http Proxy settings of the Android Studio environment.
I rummaged through the entire Internet in search of a problem. It turned out that the proxy should also be set for Gradle.
In order for the project to be created, you need to create the gradle.properties file in the C: \ Users \ <your account> \. Gradle folder
From sin away, make an account in English, because Some utilities may not accept 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 =

Source: https://habr.com/ru/post/218817/


All Articles