打不开
yzc90912 opened this issue · comments
Error on line 2, column 34: Mapping values are not allowed here. Did you miss a colon earlier?
Error on line 2, column 34: Mapping values are not allowed here. Did you miss a colon earlier?
我也是报了这个
@shichunlei 大佬,是什么原因呀
@yzc90912 @WhiteCjy @zybooo1 可不可以多提供一些日志?
我在网上查着这个错误应该是引入的第三方插件在pubspec.yaml里有空格或者缩进的问题
例如Error on line 2, column 34: Mapping values are not allowed here. Did you miss a colon earlier?
Error on line 2, column 34: Mapping values are not allowed here. Did you miss a colon earlier?
这个错误的原因我觉得应该是缩进的原因,注意这个文件pubspec.yaml最好不要使用代码格式化,可能格式化代码后由于缩进空格(可能是4个空格或者是两个空格)不同,导致的这个错误
这个错误的原因我觉得应该是缩进的原因,注意这个文件pubspec.yaml最好不要使用代码格式化,可能格式化代码后由于缩进空格(可能是4个空格或者是两个空格)不同,导致的这个错误
`Error on line 2, column 34: Mapping values are not allowed here. Did you miss a colon earlier?
╷
2 │ description: 浠夸含涓滃湴鍧€閫夋嫨鍣?version: 0.0.1
│ ^
╵
pub get failed (65)`
这个错误是
flutter_jd_address_selector:
git:
url: https://github.com/shichunlei/flutter_jd_address_selector
这个包导致的,把这三行注释了,然后把用到这个包的代码注释掉就可以了
这个错误是
flutter_jd_address_selector:
git:
url: https://github.com/shichunlei/flutter_jd_address_selector
这个包导致的,把这三行注释了,然后把用到这个包的代码注释掉就可以了
赞 解决了
Error on line 2, column 34: Mapping values are not allowed here. Did you miss a colon earlier?
╷
2 │ description: 浠夸含涓滃湴鍧€閫夋嫨鍣?version: 0.0.1
│ ^
╵
pub get failed (65)`
从这个报错信息我猜测问题应该是出在flutter_jd_address_selector/pubspec.yaml文件中的:
name: flutter_jd_address_selector
description: 仿京东地址选择器
version: 0.0.1
author: 师春雷 1558053958@qq.com
homepage: https://github.com/shichunlei/flutter_jd_address_selector,
这个"仿京东地址选择器"乱码了 @shichunlei