fluttercommunity / flutter_launcher_icons

Flutter Launcher Icons - A package which simplifies the task of updating your Flutter app's launcher icon. Fully flexible, allowing you to choose what platform you wish to update the launcher icon for and if you want, the option to keep your old launcher icon in case you want to revert back sometime in the future. Maintainer: @MarkOSullivan94
https://pub.dev/packages/flutter_launcher_icons
MIT License
1.99k stars 396 forks source link

[BUG] Index out of range error #520

Closed jpraus closed 6 days ago

jpraus commented 1 year ago

Trying to generate app icons using flutter_launcher_icons package but no matter what image I use it always ends up with and error with no additional information:

Terminal:

dart run flutter_launcher_icons
Building package executable... (2.0s)
Built flutter_launcher_icons:flutter_launcher_icons.
════════════════════════════════════════════
FLUTTER LAUNCHER ICONS (v0.13.1)  
════════════════════════════════════════════

• Creating default icons Android
• Adding a new Android launcher icon

✕ Could not generate launcher icons
RangeError (index): Index out of range: index should be less than 9216: 9252

My configuration

flutter_launcher_icons:
  android: 'launcher_icon'
  ios: true
  image_path: 'assets/images/shovel-brown.png'

I have tried several different pictures: png / jpg, different sizes from 1 KB to 12 KB, no transparent layer, etc...

Tried downgrading the flutter_launcher_icons to lower version with no luck

Upgraded all the other dependecies and tooling aroud flutter and android studio to newest version.

sookwalinga commented 12 months ago

Exact same issue my end too.

ab-gad commented 12 months ago

I encountered the same issue and resolved it by uninstalling and reinstalling the package. It worked for me, so I suggest giving it a try.

frederikstonge commented 12 months ago

Same issue for me. I'm running this line in my build pipeline, and it gets installed each time. It used to work, and suddenly stopped working. Same version of the package, same images, same configuration. I'm wondering if this package sends our image to a third party service api to convert the images.

inderjeet-developer77 commented 12 months ago

Any fix found by anyone? I am facing same issue

jpraus commented 11 months ago

I ended up generating them manually using https://www.appicon.co/

MarkOSullivan94 commented 9 months ago

@jpraus can you create a repository with the same icons and pubspec.yaml so I can inspect this?