错误
js
FAILURE: Build failed with an exception. * Where: Ssettings file 'xxx\AndroidStudioProjects\askta\android\settings.gradle' line: 22 * What went wrong: Plugin [id: 'org.jetbrains.kotlin.android', version: '2.0.20', apply: false] was not found in any of the following ources:
排查了半天,设置代理,是使用TUN模式什么情况都试过了。 最终发现是.gradle目录下设置了的代理挂掉了。
如果使用的是android studio .gradle应该是在用户目录下。

解决办法:
- 挂一个能用的代理
- 在build.gradle和settings.gradle中设置国内的镜像(我采取这种)
rust
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
// 华为云镜像
maven { url 'https://repo.huaweicloud.com/repository/maven/' }
// 腾讯云镜像
maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }

