app icon not display black display #Android 15
:information_source: Info
:speech_balloon: Description
:scroll: Pubspec.yaml
flutter_launcher_icons: flutter_launcher_icons: ^0.14.2
android:
ios:
image_path:
I have the same issue. the icon is black on the emulator and APK failed to install on the physical device
I have the same problem. My package version: 0.14.2
same issue on android 14
✅ Possible solution :
it worked for me by adding adaptive_icon_background, adaptive_icon_foreground Example :
android: true ios: true image_path: "assets/images/icon.png" adaptive_icon_background: "#ffffff" adaptive_icon_foreground: "assets/images/icon.png"
❗️check your image path and change it.
ℹ️ Info
💬 Description
📜 Pubspec.yaml
flutter_launcher_icons: flutter_launcher_icons: ^0.14.2 android: ios: image_path:it worked for me by adding adaptive_icon_background, adaptive_icon_foreground Example :
android: true ios: true image_path: "assets/images/icon.png" adaptive_icon_background: "#ffffff" adaptive_icon_foreground: "assets/images/icon.png"
check your image path and change it.
That works... 🙏 This is a critical bug and must be mentioned in the documentation on pub.dev.
ℹ️ Info
💬 Description
📜 Pubspec.yaml
flutter_launcher_icons: flutter_launcher_icons: ^0.14.2 android: ios: image_path:it worked for me by adding adaptive_icon_background, adaptive_icon_foreground Example :
android: true ios: true image_path: "assets/images/icon.png" adaptive_icon_background: "#ffffff" adaptive_icon_foreground: "assets/images/icon.png"
check your image path and change it.
OMG you're a life saver! They definitely must address this on the official documentation.
This is a critical bug and must be mentioned in the documentation on pub.dev.
Agree. +1.
Same issue here. I have tried the workaround and got no success.
Solution:
If the adaptive_background does not work for you
Delete the file
*-anydpi-v26/[launcher].xml
E.g
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Same issue here. I have tried the workaround and got no success.
Check my latest reply
Deleting the file made me happy again! Thanks! 😄
This works for me
flutter_launcher_icons: ^0.14.2
flutter_launcher_icons:
android: true
ios: true
remove_alpha_ios: true
image_path: "assets/images/icon.png"
adaptive_icon_background: "#ffffff"
adaptive_icon_foreground: "assets/images/icon.png"
min_sdk_android: 21
Don't forget to run again dart run flutter_launcher_icons
Works for me...!
Add Android Adaptive Icon
adaptive_icon_background: "#ffffff" # Background color for the adaptive icon
adaptive_icon_foreground: "assets/images/launcher_icon.png" # Foreground image for the adaptive icon
Re-Generate
flutter pub run flutter_launcher_icons:generate
Solution:
If the adaptive_background does not work for you
Delete the file
*-anydpi-v26/[launcher].xml
E.g
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Work for me, you save my night, thank you so much
✅ Possible solution :
it worked for me by adding adaptive_icon_background, adaptive_icon_foreground Example :
android: true ios: true image_path: "assets/images/icon.png" adaptive_icon_background: "#ffffff" adaptive_icon_foreground: "assets/images/icon.png"❗️check your image path and change it.
Work for me <3
still have the black icon, even after changed pubspec.yaml to :
flutter_launcher_icons:
android: true
ios: false
image_path: "assets/icon/icon.png"
min_sdk_android: 21 # android min sdk min:16, default 21
adaptive_icon_background: "#ffffff"
adaptive_icon_foreground: "assets/icon/icon.png"
and deleted *-anydpi-v26/[launcher].xml ...
flutter clean, then
dart run flutter_launcher_icons:generate --override
and
flutter pub run flutter_launcher_icons
uninstall from device, reinstall, black icon...
EDIT fixed : the xml file must be deleted AFTER any command, then you can rerun, the icon is ok now