1.Android Studio 更新渠道 (Update channels)
android studio有四种更新渠道
- Canary(金丝雀版) 带有bugs 每周更新一次 (不推荐开发)
- dev(开发版) 每两周或一月更新一次
- bata(测试版) 可用于正式开发
- stable(稳定版)
android studio 默认是 stable(稳定版),
更改默认设置
File > Settings > Appearance & Behavior System Settings > Updates 选择自己想要的更新渠道!
2.代理设置(Proxy Settings)
设置 Android Studio Proxy
通过设置代理可以越过防火墙(firewall),和更安全的连接网络
在主菜单下
File > Settings > Appearance & Behavior -- System Settings -- HTTP Proxy;
在android studio 中 打开IDE设置框
在Windows and Linux系统中
File > Settings > IDE Setting -- HTTP Proxy.
在 Mac(苹果)系统中
Android Studio > Preferences > IDE Setting -- HTTP Proxy.
Android Plugin for Gradle HTTP proxy settings
在
build.gradle中设置
apply plugin: 'com.android.application' android { ... defaultConfig { ... systemProp.http.proxyHost=proxy.company.com systemProp.http.proxyPort=443 systemProp.http.proxyUser=userid systemProp.http.proxyPassword=password systemProp.http.auth.ntlm.domain=domain } ... }
gradle/gradle.properties中设置
# Project-wide Gradle settings. ... systemProp.http.proxyHost=proxy.company.com systemProp.http.proxyPort=443 systemProp.http.proxyUser=username systemProp.http.proxyPassword=password systemProp.http.auth.ntlm.domain=domain systemProp.https.proxyHost=proxy.company.com systemProp.https.proxyPort=443 systemProp.https.proxyUser=username systemProp.https.proxyPassword=password systemProp.https.auth.ntlm.domain=domain ...注意:在AndroidStudio IDE HTTP proxy 设置代理 会覆盖 gradle.properties中的设置
SDK Manager HTTP Proxy Settings
打开SDK Manager- 在 Windows Tools > Options from the menu bar.
- 在 Mac 和 Linux Tools > Options from the system menu bar.