一、修改 hosts,解决 SDK 下载失败的问题 Windows 用文本编辑器打开host文件(推荐使用Visual Studio Code) 1 C:\Windows\System32\drivers\etc\hosts 添加映射 1 220.181.174.161 dl.google.com 注:其中 220.181.174.161 是通
一、修改 hosts,解决 SDK 下载失败的问题Windows 用文本编辑器打开 host 文件(推荐使用 Visual Studio Code)
添加映射
macOS 用文本编辑器打开 host 文件(推荐使用 Visual Studio Code)
添加映射
Linux 用文本编辑器打开 host 文件(推荐使用 Visual Studio Code)
添加映射
重启网络
二、修改 gradle 地址,解决 gradle 下载失败的问题依次打开 gradle → \rightarrow→ wrapper → \rightarrow→ gradle-wrapper.properties
三、使用阿里云 Maven 中央仓库,解决插件和依赖项下载失败的问题settings.gradle 版本
settings.gradle.kts 版本
|
2022-04-23
2022-01-26
2021-11-15
2021-08-02
2019-12-15