2

I was trying to change the Launcher icon in flutter and got this error: failed processing manifest. Failed to execute aapt failed processing manifest.   Failed to execute aapt

I did not even know there is a second manifest file located in another folder according to that log file. am new to flutter

Armali
  • 16,557
  • 13
  • 53
  • 152
Taio
  • 2,447
  • 6
  • 30
  • 49
  • Please add the information where you put the icon file and how the change looks like you made to the `AndroidManifest.xml`. – Günter Zöchbauer Jun 08 '18 at 08:49
  • 1
    When asking, please insert formatted error message/stack, not screenshot, so it can be indexed, became searchable and is easier to read. – Andrew_Lvov Jun 08 '18 at 08:57
  • @GünterZöchbauer I first tried to change the icons. So I deleted the defaults and replaced with new ones. The error came up so I reverted back to the default icons and the error still remains – Taio Jun 08 '18 at 09:01
  • 1
    Possible duplicate of [How to change the application launcher icon on Flutter?](https://stackoverflow.com/questions/43928702/how-to-change-the-application-launcher-icon-on-flutter) – Mark O'Sullivan Jun 27 '18 at 08:59

2 Answers2

1

Under android folder (look at the screenshot), replace ALL icons and update the name CORRECTLY under AndroidManifest.xml file

enter image description here

Phuc Tran
  • 6,575
  • 1
  • 36
  • 27
0

To change the icon of the two applications, I recommend you use this add-on:

https://pub.dartlang.org/packages/flutter_launcher_icons

1º Add dependency to your Flutter project's pubspec.yaml below any existing dependencies

2º Within the same pubspec.yaml file, add flutter_icons config section

dev_dependencies: 
  flutter_test:
    sdk: flutter

   flutter_launcher_icons: "^0.3.2"

   flutter_icons:
   image_path: "icon/icon.png" 
   android: true
   ios: "Example-Icon"
DomingoMG
  • 1,722
  • 2
  • 19
  • 39