Skip to content

Error creating adaptative icons #641

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

Open
gturmo opened this issue Apr 18, 2025 · 1 comment
Open

Error creating adaptative icons #641

gturmo opened this issue Apr 18, 2025 · 1 comment
Labels

Comments

@gturmo
Copy link

gturmo commented Apr 18, 2025

ℹ️ Info

0.14.3

💬 Description

During execution of dart run flutter_launcher_icons I get ✗ ERROR: InvalidConfigException

Missing "image_path" or "image_path_android" + "image_path_ios" within configuration The problem is that if I write an image_path with an icon, it doesn't creates adaptative android icons.

📜 Pubspec.yaml

flutter_launcher_icons:
  android: true
  ios: true
  image_path: null
  image_path_android: null
  image_path_ios: "assets/icon_ios_no_alpha.png"
  android_adaptive_icon_foreground: "assets/icon_foreground.png"
  android_adaptive_icon_background: "assets/icon_background.png"
@gturmo gturmo added the bug label Apr 18, 2025
@gturmo
Copy link
Author

gturmo commented Apr 18, 2025

Hi, I discovered the my error. I'm using old string android_adaptive_icon_foreground: "assets/icon_foreground.png"
android_adaptive_icon_background: "assets/icon_background.png" instead of:

adaptive_icon_foreground: "assets/icon_foreground.png"
adaptive_icon_background: "assets/icon_background.png"

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

1 participant