For well-known reasons, there is a red wall in our network environment, which leads us to have a lot of problems when we configure our environment-we can't connect to Google servers to download some dependent packages.
Android Studio is really disgusting, today is the nth time said, all kinds of configuration after the thought can be happy to write code, but offline work when new project finished Xxxxactivity.xml cannot use graphical interface preview, cannot drag the control. Finally have the network, but found Gradle download has been stuck, if you also met, do not want to be wall!
Gradle Download the workaround:
1. If you have v+p+ n words, directly hung up the agent should be able to download, if not, you can use Zym (self-search for download), open Zym
2.Android Studio under File---Settings---Gradle----Gradle VM Options---Fill in-dhttp.proxyhost=127.0.0.1-dhttp.proxyport= 8580 then OK should now be able to download the
How the SDK Manager downloads the solution:
1. Open Zym
2. Open SDK Manager--Tools-->options--fill in the corresponding location
Check here--
Turn it off and on again, and you can download it! It's not too fast, but it's basically something you can download.
Android Studio Environment SDK Manager, gradle Unable to update download solution