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
  • 18,255
  • 14
  • 57
  • 171
Taio
  • 3,152
  • 11
  • 35
  • 59
  • 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
  • 7,555
  • 1
  • 39
  • 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,827
  • 2
  • 23
  • 44