I want to run my unit test with this command
gradlew.bat connectedInstrumentTest
But it tries to download https://services.gradle.org/distributions/gradle-2.2.1-all.zip
And my corporal network blocks it. Hence, I want to setup the zip manually, I already downloaded it from browser.
The ways I failed are listed below
- Pasting it in Program Files\Android\Android Studio\gradle\ gradle-2.2.1 didn't work
- File -> Settings -> Build execution, Deployment -> Build Tools and defining the gradle home directory didn't work
Any suggestions except these will be much appreciated. Thanks.
Offline work
in Global Gradle setting? – Precocity