'/Users/XXX/.pub-cache/hosted/pub.flutter-io.cn/flutter_plugin_android_lifecycle-2.0.17/android/build.gradle'.
[ ] Downloading
https://repo.maven.apache.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-jvm/1.4.1/kotlinx-coroutines-core-jvm-1.4.1.jar to
/Users/XXX/.gradle/.tmp/gradle_download7829943129109247924bin
真的好烦,每次遇到都是手动修改 build.gradle 文件,添加
maven { url 'https://mirrors.cloud.tencent.com/nexus/repository/maven-public/' }
终端也是设置了代理,不管是 wget https://repo.maven.apache.org/xxx 还是 curl https://repo.maven.apache.org/xxx 都能正常执行,但使用 flutter run 就是不能正常下载
按照它的提示将文件手动下载到 /Users/XXX/.gradle/.tmp/gradle_download7829943129109247924bin 还是不行
按照网上说的,复制一份 settings.xml 到 $HOME/.m2/,不管是添加代理
http-proxy
true
http
127.0.0.1
1086
https-proxy
true
https
127.0.0.1
1086
还是添加镜像
nexus-tencentyun
*
Nexus tencentyun
https://mirrors.cloud.tencent.com/nexus/repository/maven-public/
还是不行
搞得现在想自己搭一个镜像站,然后改 DNS 了,有大佬能帮忙看一下吗