Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app icon not display black display #Android 15 #618

Open
raviajadiya opened this issue Dec 8, 2024 · 15 comments
Open

app icon not display black display #Android 15 #618

raviajadiya opened this issue Dec 8, 2024 · 15 comments
Labels

Comments

@raviajadiya
Copy link

raviajadiya commented Dec 8, 2024

ℹ️ Info

💬 Description

📜 Pubspec.yaml

flutter_launcher_icons: flutter_launcher_icons: ^0.14.2
  android: 
  ios: 
  image_path: 
@raviajadiya raviajadiya added the bug label Dec 8, 2024
@arslan8t8
Copy link

I have the same issue. the icon is black on the emulator and APK failed to install on the physical device

@furknataman
Copy link

I have the same problem. My package version: 0.14.2

@gm6534
Copy link

gm6534 commented Dec 8, 2024

same issue on android 14

@belabiedredouane
Copy link

belabiedredouane commented Dec 8, 2024

✅ 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.

@arslan8t8
Copy link

ℹ️ 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.

@Reasondro
Copy link

ℹ️ 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.

@phamquoctrongdev
Copy link

phamquoctrongdev commented Dec 14, 2024

This is a critical bug and must be mentioned in the documentation on pub.dev.

Agree. +1.

@andreclinio
Copy link

Same issue here. I have tried the workaround and got no success.

@harrowmykel
Copy link

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

@harrowmykel
Copy link

Same issue here. I have tried the workaround and got no success.

Check my latest reply

@andreclinio
Copy link

Deleting the file made me happy again! Thanks! 😄

@gourav6m17
Copy link

gourav6m17 commented Dec 20, 2024

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

@musabibnusiraj
Copy link

musabibnusiraj commented Dec 23, 2024

Works for me...!

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

image

Re-Generate

flutter pub run flutter_launcher_icons:generate

@DucThu-Dev
Copy link

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

@Pbja44
Copy link

Pbja44 commented Jan 14, 2025

✅ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests