android更新的代理配置

本文档详细列举了Google各项服务对应的IP地址映射,包括主页、应用商店、搜索、文档、邮件等服务,旨在为网络配置提供指导。
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
#Google主页

203.208.46.146 www.google.com


74.125.113.121 developer.android.com

#更新的内容从以下地址下载

203.208.46.146 dl.google.com

203.208.46.146 dl-ssl.google.com


#Google Service

#Chrome 网上应用

203.208.46.146 chrome.google.com

203.208.46.146 clients0.google.com

203.208.46.146 clients1.google.com

203.208.46.146 clients2.google.com

203.208.46.146 clients3.google.com

203.208.46.146 clients4.google.com

203.208.46.146 www.googleusercontent.com
203.208.46.146 lh0.googleusercontent.com
203.208.46.146 lh1.googleusercontent.com
203.208.46.146 lh2.googleusercontent.com
203.208.46.146 lh3.googleusercontent.com
203.208.46.146 lh4.googleusercontent.com
203.208.46.146 lh5.googleusercontent.com
203.208.46.146 lh6.googleusercontent.com
203.208.46.146 clients1.googleusercontent.com
203.208.46.146 clients2.googleusercontent.com
#网页快照
203.208.46.146 webcache.googleusercontent.com
#Google SSL
203.208.46.146 encrypted.google.com
203.208.46.146 encrypted.google.com.hk
#Google Docs
203.208.46.146 docs.google.com
203.208.46.146 docs0.google.com
203.208.46.146 docs1.google.com
203.208.46.146 docs2.google.com
203.208.46.146 docs3.google.com
203.208.46.146 spreadsheets.google.com
203.208.46.146 spreadsheets0.google.com
203.208.46.146 spreadsheets1.google.com
203.208.46.146 spreadsheets2.google.com
203.208.46.146 spreadsheets3.google.com
#Gmail
203.208.46.146 mail.google.com
203.208.46.146 chatenabled.mail.google.com #Gmail中Gtalk聊天服务
#Google 搜索
203.208.46.146 www.google.com
#Google preview
203.208.46.146 www.googlepreview.com
#Google 翻译
203.208.46.146 translate.google.com
203.208.46.146 translate.googleapis.com
#Google 搜索建议(IE9)
203.208.46.146 clients5.google.com
#Google Code
203.208.46.146 code.google.com
#Picasa 网络相册
203.208.46.146 picasaweb.google.com
203.208.46.146 lh0.ggpht.com
203.208.46.146 lh1.ggpht.com
203.208.46.146 lh2.ggpht.com
203.208.46.146 lh3.ggpht.com
203.208.46.146 lh4.ggpht.com
203.208.46.146 lh5.ggpht.com
203.208.46.146 lh6.ggpht.com
203.208.46.146 lh7.ggpht.com
203.208.46.146 lh8.ggpht.com
203.208.46.146 lh8.ggpht.com
203.208.46.146 lh9.ggpht.com
203.208.46.146 lh6.google.com
#Google 个人资料
203.208.46.146 profiles.google.com
203.208.46.146 browsersync.google.com
#Google+
203.208.46.146 talkgadget.google.com #Google+中的聊天服务
203.208.46.146 ssl.gstatic.com
203.208.46.146 images-pos-opensocial.googleusercontent.com
203.208.46.146 images1-focus-opensocial.googleusercontent.com
203.208.46.146 images2-focus-opensocial.googleusercontent.com
203.208.46.146 images3-focus-opensocial.googleusercontent.com
203.208.46.146 images4-focus-opensocial.googleusercontent.com
203.208.46.146 images5-focus-opensocial.googleusercontent.com
203.208.46.146 images6-focus-opensocial.googleusercontent.com
203.208.46.146 plus.google.com
#Download 下载
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
#Groups
203.208.46.146 groups.google.com
#Google URL Shortener
203.208.46.146 goo.gl
#Google App Engine
203.208.46.146 appengine.google.com
#Android Developer

74.125.113.121 developer.android.com
### Android Studio 代理配置教程及相关资源 在受限网络环境中,开发者通常需要为 Android Studio 配置代理以便正常访问外部资源。以下是关于 Android Studio 代理配置的具体方法以及推荐的相关网站和教程。 #### 1. Android Studio 自身的代理设置 Android Studio 提供了一个内置选项用于配置 HTTP/HTTPS 代理。可以通过以下路径完成设置: - 打开 **File -> Settings** 菜单。 - 导航至 **Appearance & Behavior -> System Settings -> HTTP Proxy**[^1]。 在此界面中可以选择代理类型(手动或自动),并输入相应的地址、端口以及其他认证信息。 #### 2. Gradle 的代理设置 除了 Android Studio 内部的代理外,Gradle 还需单独配置才能确保依赖项能够成功下载。这一步骤对于某些特定环境尤为重要。具体操作如下: - 编辑 `gradle.properties` 文件,该文件可以位于全局目录或者项目的根目录下。 - 添加以下内容: ```properties # HTTP proxy settings systemProp.http.proxyHost=your-proxy-host systemProp.http.proxyPort=your-proxy-port # HTTPS proxy settings (if different from HTTP) systemProp.https.proxyHost=your-https-proxy-host systemProp.https.proxyPort=your-https-proxy-port # Optional authentication details, if required by your network systemProp.http.proxyUser=username systemProp.http.proxyPassword=password systemProp.https.proxyUser=username systemProp.https.proxyPassword=password ``` 以上代码片段展示了如何定义 HTTP 和 HTTPS 的代理参数,并可选地加入用户名密码验证字段[^3]。 #### 推荐学习资料与网站链接 为了更深入理解及实践 Android Studio 的代理配置过程,建议查阅以下几个权威站点和技术博客文章: - 官方文档:Google Developers 提供了详尽的技术指导,覆盖从基础到高级的各种场景 https://developer.android.com/studio/intro/http-proxy-settings[^4]。 - 中文社区支持:优快云 或者知乎平台上也有不少高质量的经验分享帖,搜索关键词 “Android Studio 设置代理” 即可找到大量实例解析[^3]。 另外值得注意的是,在实际应用过程中可能会遇到各种兼容性和特殊需求情况下的调整问题,因此保持持续关注官方更新动态非常重要。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值