美文网首页
编译的时候jcenter仓库出现502错误

编译的时候jcenter仓库出现502错误

作者: 晓函 | 来源:发表于2022-04-21 21:46 被阅读0次

编译的时候jcenter仓库出现502错误


编译时候错误

打开url果然502,


502err

出现这个502错误,是因为jcenter仓库自己服务器出问题了。
不着急就明天再弄,等她恢复

着急解决:

可以打开.packages,找到包目录,

amap_flutter_location:file:///Users/xxx/Develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/amap_flutter_location-3.0.0/

前往目录,找到build.gradle,注释jcenter,改为mavenCentral仓库

image.png

做了以上操作之后,删除pubspec.lock,重新跑就ok了

相关文章

网友评论

      本文标题:编译的时候jcenter仓库出现502错误

      本文链接:https://www.haomeiwen.com/subject/lhkqhrtx.html