问答详情
源自:3-2 带你了解Flutter的工程结构

在Window上创建时,报255

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)


提问者:YeyuJingming 2019-09-15 15:51

个回答

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

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

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

    换Mac吧