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?
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.
I finally fixed my problem, if someone needs the solution:
My old proxy settings were stored in the file ~/.gradle/gradle.properties
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With