Reputation: 83
any one have solution to this problem i am running flutter pub run flutter_launcher_icons:main and it is not working for me
Upvotes: 3
Views: 8758
Reputation: 29
for me this worked:
on pubspec.yaml, below the dependencies itself
dependencies:
flutter_launcher_icons: ^0.13.1
flutter:
sdk: flutter
on the lowest part of the yaml file
flutter_launcher_icons:
android: "launcher_icon"
ios: true
image_path: "assets/compass.png"
min_sdk_android: 21 # android min sdk min:16, default 21
remove_alpha_ios: true
then I just ran the cmd
flutter pub run flutter_launcher_icons
Upvotes: 0
Reputation: 1
if dependencies are upgraded degrade it to mentioned version and use it.
dev_dependencies:
flutter_launcher_icons: "^0.9.2"
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icon/icon.png"
and also change in pubspec.yaml
dependencies:
flutter_launcher_icons: ^0.9.2
Upvotes: 0
Reputation: 21
Just ... Restart android studio
run
Upvotes: 2
Reputation: 41
I just solved the same error you have, and it was something so simple that many of us do not realize it sometimes.
Upvotes: 2
Reputation: 1
if you facing this problem
✗ ERROR: NoConfigFoundException
Check that your config file flutter_launcher_icons.yaml has a flutter_icons section
try this
uninstall the app from the phone or emulator
Go To Power Shell and run as Administrator
cd ( your project path )
flutter pub get
flutter pub run flutter_launcher_icons:main
flutter run
Upvotes: 0
Reputation: 12703
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 whereflutter_icons
was used.
Upvotes: 15