fluttercommunity / fluttercommunity/flutter_launcher_icons

[BUG] android tag application xml layout

Open
#414 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
2.1k
Forks
426
PR merge metrics
No merged PRs in 30d

Description

### :information_source: Info

Version: `0.10.0

### :speech_balloon: Description

idk why but it generates two '>>' isntead of one

C:\Development\flutter projects\pratura\android\app\src\debug\AndroidManifest.xml:11:9-43 Error:
Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:11:9-43
is also present at AndroidManifest.xml:7:9-45 value=(@mipmap/launcher_icon).
Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:8:6-39:19 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:11:9-43
is also present at AndroidManifest.xml:7:9-45 value=(@mipmap/launcher_icon).
Suggestion: add 'tools:replace="android:icon"' to element at AndroidManifest.xml:8:6-39:19 to override.

### :scroll: Pubspec.yaml

flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/icons/logo.png"
min_sdk_android: 21 # android min sdk min:16, default 21
web:
generate: false
image_path: "path/to/image.png"
background_color: "#hexcode"
theme_color: "#hexcode"
windows:
generate: false
image_path: "path/to/image.png"
icon_size: 48 # min:48, max:256, default: 48

We ask that you include your pubspec.yaml file as a common problem we have seen has been the pubspec.yaml file being incorrect

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the generated android/app/src/debug/AndroidManifest.xml and the pubspec.yaml configuration shown in the report. Reproduce the processDebugMainManifest failure, then trace how the Android icon configuration is applied. Done means the manifest has one application icon source and the debug build completes without the merger error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.