Am new to Flutter. I gone through the flutter documentation and followed the steps to configure custom launcher icons for my flutter project but app Launcher icon is not getting
I wasn't using flutter_launcher_icons
, I was using just Image Asset Studio in the Android project. It seemed that in certain situations it wasn't updating my Adaptive Icon on Android.
To fix it, I opened the Android module (right click on the android/
folder in the Flutter view, then select Flutter | Open Android Module in Android Studio). From there, open the res/
folder and delete everything that looks like foreground.xml
. AFAICT this is what is generated by Image Asset Studio as part of the Adaptive Icon.
Then recreate the Adaptive Icon via Image Asset Studio.
At this point my Flutter cache was corrupted, so I had to run flutter pub cache repair
(I mention this because maybe somehow that is what fixed it, but I doubt it). Run the app and then voila, the icon updated.