在Window上创建时,报255

来源:3-2 带你了解Flutter的工程结构

YeyuJingming

2019-09-15 15:51

Unhandled exception:

FormatException: Scheme not starting with alphabetic character (at character 1)

 https://pub.flutter-io.cn

^


#0      _Uri._fail (dart:core/uri.dart:1623:5)

#1      _Uri._makeScheme (dart:core/uri.dart:2184:7)

#2      new _Uri.notSimple (dart:core/uri.dart:1465:18)

#3      Uri.parse (dart:core/uri.dart:1022:17)

#4      HostedSource._pubHostedUrlConfig (package:pub/src/source/hosted.dart:57:19)

#5      HostedSource.defaultUrl (package:pub/src/source/hosted.dart:50:28)

#6      new UploaderCommand (package:pub/src/command/uploader.dart:27:42)

#7      new PubCommandRunner (package:pub/src/command_runner.dart:107:16)

#8      main (file:///C:/b/s/w/ir/k/src/third_party/dart/third_party/pkg/pub/bin/pub.dart:8:3)

#9      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:303:32)

#10     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

Running "flutter pub get" in flutter_lession...

pub get failed (255)


写回答 关注

2回答

  • YeyuJingming
    2019-09-23 15:46:09

    已解决了,用户变量的值多了个空格

    weixin...

    配置镜像的环境变量PUB_HOSTED_URL的url前面还真多了个空格,去掉后,重启studio再次运行flutter pub get,成功了

    2019-12-18 23:10:46

    共 1 条回复 >

  • 单纯的土豆
    2019-09-17 10:50:45

    换Mac吧

【Flutter入门】3小时完成微信读书发现界面

零基础快速上手Flutter,还原真实大厂案例,增强移动端面试竞争力。

4346 学习 · 32 问题

查看课程

相似问题