Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio on mac: remove proxy settings

Tags:

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?

like image 423
Sébastien Demoustiez Avatar asked Mar 29 '18 11:03

Sébastien Demoustiez


People also ask

How do you remove proxy settings on a Mac?

To change these preferences on your Mac, choose Apple menu > System Preferences, click Network , select a network service in the list on the left, click Advanced, then click Proxies. If there's a lock at the bottom left of the Network pane, click it to unlock the preference pane.


1 Answers

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

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

like image 51
Sébastien Demoustiez Avatar answered Oct 05 '22 21:10

Sébastien Demoustiez