简体   繁体   中英

I am getting this error while creating a new flutter project in android studio related to pubspec.yaml

name: i_am_poor description: A new Flutter project.

publish_to: 'none'

version: 1.0.0+1

environment: sdk: ">=2.16.2 <3.0.0"

dependencies: flutter: sdk: flutter

cupertino_icons: ^1.0.2

dev_dependencies: flutter_test: sdk: flutter

flutter_lints: ^1.0.0

flutter:

uses-material-design: true

assets: - images/

Error on line 33, column 10 of pubspec.yaml: Mapping values are not allowed here. Did you miss a colon earlier? ╷ 33 │ assets: │ ^ ╵ Process finished with exit code 65

Thats issue with pubspec.yaml file which ahs no proper formatting.Please see atatched how pubspecs.yaml file looks. You need to follow indent and specing for pubspec file format as it self explanatory.

在此处输入图像描述 在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

In screenshots, you can see that how the proper spacing works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM