为了账号安全,请及时绑定邮箱和手机立即绑定

在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)


正在回答

3 回答

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

1 回复 有任何疑惑可以回复我~
#1

weixin_慕慕8059607

配置镜像的环境变量PUB_HOSTED_URL的url前面还真多了个空格,去掉后,重启studio再次运行flutter pub get,成功了
2019-12-18 回复 有任何疑惑可以回复我~

换Mac吧

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

在Window上创建时,报255

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信