`
ipython
  • 浏览: 293840 次
  • 性别: Icon_minigender_1
  • 来自: 佛山
社区版块
存档分类
最新评论

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

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics