- Flutter Could not resolve projec
- flutter编译报错:Could not resolve co
- (技术)Flutter Could not resolve
- Flutter 1.17 环境安装踩坑
- flutter 0基础开坑记录之不能解析flutter_tool
- flutter启动时出现Could not resolve al
- Could not resolve all dependenci
- Could not resolve io.flutter:flu
- Could not find :app-ptt-release:
- gradle could not resolve all dep
遇到这种错误一般是 依赖包 无法下载的问题
步骤1:更新项目的依赖
打开项目的 android/build.gradle文件,将里面的两个repositories改为
repositories {
maven {
url 'https://maven.aliyun.com/repository/google'
}
maven {
url 'https://maven.aliyun.com/repository/jcenter'
}
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public'
}
google()
jcenter()
}
步骤2: flutter pub cache clean
步骤3: flutter pub cache repair
步骤4:将下载失败的包的依赖修改
![](https://img.haomeiwen.com/i4768590/eb143871135db588.png)
Mac 一般在 /Users/xxx/.pub-cache/hosted/pub.flutter-io.cn
网友评论