I want to change my app icon in flutter using flutter_launcher_icons: ^0.9.2
It shows me errors while I'm running Command flutter pub run flutter_launcher_icons:main
Image of the error
I tried many times but no new results
I just had the same problem and solved doing this in android/app/build.gradle
.
Changed:
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
To:
minSdkVersion 26
targetSdkVersion 30
Source
[Edit] After that, I could not run on emulator, so I changed back the gradle file (without running flutter_launcher_icon again). Now I have the app running and the icons are right.
Thanks to this answer, I was able to fix the issue!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With