We all know that Android studio is based on idea development, and we write every program is gradle built, gradle the advantages can be said to be many, by many programmers boast not side, But it has a feature that deserves our attention. Every time we click this button to execute our program, it will be called to build, this and eclipse is not the same, because the gradle when the construction of the network, but connected to the Internet chant, but also to connect to the network outside the wall, I had just dabbled in mobile development can be it to the pit bitter, now think of it is really egg pain ah, full of confidence installed in the tall Android Studio, but because it is not enough to understand, often appear gradle Sync failed error, I have been tossing and going back and forth on Ubuntu and windows for several times, thinking that my system had problems until later (I finally learned how to love). This is really a big hole, if I was a little bit less firm, then probably with the Android development say Goodbye. So the idea of writing this blog, I hope that after the new people can not step on some pits (eh, it seems that I have been only a newcomer AH).
As a celestial Android programmer, if it is not scientific internet, it is not a bit too bad. Tell me about me first. The first time to jump out of the wall is just a sophomore, occasionally heard of a called Go agent open source software, can free FQ, So I finally realized after two hours of what is called outside the world, at that time also cut a few YouTube and Facebook pictures in the QQ space (later found that the comparison of the two forced to delete), was really very excited. And then I knew go The agent is written in Python language, and many people seem to be very good at this language, I went to the library to borrow this Python core programming flipped. It's a tribute to go agent. It's about how to use the Go agent I'm not going to introduce you here. If you are interested, you can find a post and try it.
Now no goagent, because the recent GFW shielding more serious, Go agent is very unstable, always need to replace the IP List, so moved to Shadowsocks. The Chinese name is the shadow shuttle.
Well, it seems a bit far away, so get to the point.
First open our Android Studio, click on the toolbar under File settings, as
Then enter proxy above the search box and click on the fourth step, as
After that, we entered the interface of setting up the agent, such as
By default, no proxy is selected, meaning that you do not need to set up an agent. If you are using a shadowsocks agent, you can follow the 5 6 7 84 below, such as:
Here's a little explanation,
- Manual proxy configuration translation is to manually set the meaning of the agent.
- Shadowsocks is Socks proxy method
- 127.0.0.1 means to use your machine as an agent.
- 1080 is the Shadowsocks default port number
At this time, if your shadowsocks is working properly, then you can implement Android studio online. Test it, click the Check for Update option under Help on the toolbar, or if you are not prompted to do so, or if you are prompted to update studio , it means you have succeeded in your youth.
Finally, if you use goagent words, only need to change the port number to 8087 can be, any other step does not need to change, as for the other VPN, please refer to your own software to set it.
Android Studio Setup Agent