---
title: "flutter run 出错 Could not get resource 'https://https/storage.flutter-io.cn"
author: "ipython"
date: "2020-05-11T10:30:16Z"
tags: []
categories: ["移动开发"]
slug: "flutter-run-could-not-get-resource-https-https-storage-flutter-io-cn"
draft: false
lastmod: "2020-05-11T15:12:33Z"
id: 2514073
url: "https://ipython.iteye.com/blog/2514073"
---

flutter run 出错

&gt; Could not resolve io.flutter:flutter\_embedding\_debug:1.0.0-3953c3ccd15a54a0718700aa11ead664b264b7dd.

         &gt; 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'.

            &gt; 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'.

               &gt; 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