[BUG] Index out of range error
jpraus opened this issue · comments
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.
Exact same issue my end too.
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.
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.
Any fix found by anyone? I am facing same issue
I ended up generating them manually using https://www.appicon.co/
@jpraus can you create a repository with the same icons and pubspec.yaml so I can inspect this?