Due to various reasons in the Celestial kingdom, the Android SDK cannot be downloaded. There are all kinds of HTTP proxy methods on the Internet, but setting in the SDK manager is not found in the Ubuntu environment, so we will write the configuration to the configuration file:
Create File ~/.androidtool.cfg
Add the following content to the file:
for Android toolhttp.proxyport=sdkman.monitor.density=108Http.proxyhost =Mirrors.opencas.cnsdkman.show.update.only=truesdkman.ask.adb.restart= FalseSdkman.force.http=truesdkman.show.updateonly=true
Note:
http.proxyHost ,
http.proxyPort 就是下面镜像地址与端口
Android SDK Update mirror server online
Open Source Association of CAS image station address:
Ipv4/ipv6: http://mirrors.opencas.cn
Port: 80
Ipv4/ipv6: http://mirrors.opencas.org
Port: 80
Ipv4/ipv6: http://mirrors.opencas.ac.cn
Port: 80
Shanghai GDG Mirror server address:
http://sdk.gdgshanghai.com
Port: 8000
Beijing University mirror server address:
IPV4: http://ubuntu.buct.edu.cn/
Port: 80
IPV4: http://ubuntu.buct.cn/
Port: 80
IPV6: http://ubuntu.buct6.edu.cn/
Port: 80
Dalian Neusoft Institute of Information Mirror server address:
http://mirrors.neusoft.edu.cn
PORT: 80
Once you have created the file, you can then go to the SDK Manager to download
Ubuntu Android Studio Download SDK