flutter run 出错 Could not get resource 'https://https/storage.flutter-io.cn
flutter run 出错
> Could not resolve io.flutter:flutter_embedding_debug:1.0.0-3953c3ccd15a54a0718700aa11ead664b264b7dd.
> Could not get resource 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-3953c3ccd15a54a0718700aa11ead664b264b7dd/flutter_embedding_debug-1.0.0-3953c3ccd15a54a0718700aa11ead664b264b7dd.pom'.
> Could not GET 'https://https/storage.flutter-io.cn/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-3953c3ccd15a54a0718700aa11ead664b264b7dd/flutter_embedding_debug-1.0.0-3953c3ccd15a54a0718700aa11ead664b264b7dd.pom'.
> https
原因: 获取的地址变为: https://https/storage.flutter-io.cn,(多了一个https)
解决办法:
将原来的
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
改为
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=storage.flutter-io.cn