error: resource mipmap/ic_launcher (aka com.example.i_am_rich:mipmap/ic_launcher) not found. error: failed processing manifest

23 views Asked by At

Changed application icon in flutter by replacing the mipmap files inside android/app/src/ which caused the above error.

I simply replaced the files with the ones for my app icon. However, I did change the name of my application icon.

1

There are 1 answers

0
KOHEXO On

The issue happened because I named the app icon something other than "ic_launcher.png".

As you can see in the image attached:

The android:icon="@mipmap/ic_launcher"> and the mipmap file must have the same name. If you name the application icon something else, it must match in the android:icon="@mipmap/ic_launcher">.

Which is located in android/app/src/main/AndroidManifest.xml and in build/app/intermediates/packages_manifests/debug/AndroidManifest.xml

Click to view screenshot

Hope this helps someone else trying to learn flutter as myself. Feel free to correct me in anything if I am wrong.