Check that your config file `flutter_launcher_icons.yaml` has a `flutter_icons` section

Viewed 1618

enter image description here

any one have solution to this problem i am running flutter pub run flutter_launcher_icons:main and it is not working for me

3 Answers

Your pubspec.yaml should be like this:

dev_dependencies:
  flutter_launcher_icons: "^0.9.2"

flutter_icons:
  android: "launcher_icon"
  ios: true
  image_path: "assets/icon/icon.png"

Notice where flutter_launcher_icons was used and where flutter_icons was used.

I just solved the same error you have, and it was something so simple that many of us do not realize it sometimes.

  • Verify that the terminal is in your project folder.
  • Try putting flutter_launcher_icons: any in the dev_dependencies: section like in the image.
  • Verify correct indentation in pubspec.yaml

click to see image

if you facing this problem

āœ— ERROR: NoConfigFoundException
Check that your config file flutter_launcher_icons.yaml has a flutter_icons section

try this

  1. uninstall the app from the phone or emulator

  2. Go To Power Shell and run as Administrator

  3. cd ( your project path )

  4. flutter pub get

  5. flutter pub run flutter_launcher_icons:main

  6. flutter run

Related