am using the package flutter_launcher_icons to generate launcher icons for my flutter app ,
using the method mentioned a the documentation I have added the file and mentioned it on my pubspec.yaml
flutter_icons:
android: launcher_icon
image_path: assets/images/launcher_icon.png
ios: true
remove_alpha_ios: true
and then called it using
flutter pub get
flutter pub run flutter_launcher_icons
all files are being generated without a problem but when I run
flutter build appbundle --release
am getting this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.
> Multiple task action failures occurred:
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR:D:\Flutter\dawri_flutter\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.
ERROR:D:\Flutter\dawri_flutter\android\app\src\main\res\mipmap-xhdpi\ic_launcher.png: AAPT: error: file failed to compile.
> A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
> Android resource compilation failed
ERROR:D:\Flutter\dawri_flutter\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: AAPT: error: failed to read PNG signature: file does not start with PNG signature.
ERROR:D:\Flutter\dawri_flutter\android\app\src\main\res\mipmap-hdpi\ic_launcher.png: AAPT: error: file failed to compile.