ITeye博客

flutter run 出错 Could not get resource 'https://https/storage.flutter-io.cn

ipython · 2020-05-11 10:30 · 移动开发 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。