I admit that my title is too powerful. When I solve the problem mentioned in this article, I did think of this song again and again.
This is the case: I use an iMac on the Intranet and access the Internet through the proxy server. In other words, this machine is newly purchased and requires the development environment to be installed. After you download and install eclipse and ADT (Android development tools), the next step is to install platforms and other software packages required for Android development in the ADT. The problem is that the Intranet proxy server requires authentication, and the ADT can only set the proxy server address and port, but cannot set the user name and password.
Solution: Install squid locally and act as an agent to deal with the proxy server. The user authentication information is sent to the proxy server to traverse the proxy.
Squid for Mac: Squid Mac OS X-Project page
InstallProgramVery considerate. I just started it on my own. Of course, this is annoying.
Edit squid. conf in the ETC subdirectory of the squid installation directory. The content is as follows:
Http_port your defined local port
ACL all SRC 0.0.0.0/0.0.0.0
Http_access allow all
Icp_access allow all
Cache_peer Intranet proxy server address parent Intranet proxy server port 0 proxy-only Default Login = Username: Password
Never_direct allow all
Then start squid on the terminal:
Sudu/applications/squid/sbin/squid-z
Sudu/applications/squid/sbin/squid
After successful, set the proxy server to localhost in the settings Tab Of the ADT, set the port to the port specified in the first line above, and refresh.