Android studio on mac: remove proxy settings

seorefbe :

I work on macOS High Sierra with Android Studio 3.1 (same problem with 2.3).

I had previously a proxy settings, but actually we stop using proxy.

When i try to update gradle to 4.4 (or other version) android studio apprently continue to use an old proxy settings.

Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:4.4.
Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.pom'.
Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/4.4/gradle-4.4.pom'.
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to proxy-********:8080 [proxy-********/172.20.10.5] failed: connect timed out

I already disabled the proxy in preferences > system settings > HTTP Proxy.

Someone have an idea?

seorefbe :

I finally fixed my problem, if someone needs the solution:

My old proxy settings were stored in the file ~/.gradle/gradle.properties

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=429967&siteId=1