简体   繁体   中英

Pubspec.yaml in Android Studio

enter image description here

What kind of mistakes are happening with me?

Please somebody guide me

Your error is from indentation since indentation is very important in Yaml as it is in Python.

  1. assets should be on the same starting line with uses-material-design. Example below
  uses-material-design: true
  assets:
 

Please post the code next time instead of a screenshot or you colud post both.

**

Open Your project
Create an asset file in the project, go to pubspaec.yaml.
1. Comment out assets file add assets folder (left side 2 space) then get a pub gate.

**

在此处输入图像描述

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