Style-7
Style-7

Reputation: 1236

Set HTTPS proxy server for Gradle problem

I want to set HTTPS proxy in Android Studio for Gradle. There is no standard options for set it via dialog box (HTTP or SOCK only), but according this guide I set it via gradle.properties file in my project.

systemProp.https.proxyHost = 8.8.8.8 // just for example
systemProp.https.proxyPort = 8080

I found a free proxy server and checked it via web browser, but it is not work for Android Studio. Any hints?

Upvotes: 1

Views: 1215

Answers (1)

George
George

Reputation: 2512

Here is an answer of mine describing how to configure proxy over Gradle.

To make sure that the properties you have set is active, You can use the command line at the project directory (where gradle.properties is located) and type gradle properties, This should list all the active gradle properties at the current location.

You can also add to gradle home where it is usually located at C:/Users/%USERNAME%/.gradle, This way you will have a global setup, so you don't have to add the proxy to all gradle.properties

Upvotes: 1

Related Questions