Search code examples
androidfluttermobile-application

How to change android icon in flutter?


After running a flutter app, it gets correctly deployed to an Android Virtual Device.

While in the virtual device, I can notice that the icon chosen for the app shows up correctly among other existing apps.

But, when I tap to see running processes, an Android icon appears at the top of the flutter app window.

Icons were manually added as described here.

How can I change this default icon to use mine?

enter image description here


Solution

  • Check again your AndroidManifest.xml

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.snapio">
    
    <application
        android:name="io.flutter.app.FlutterApplication"
        android:label="flutter"
        android:icon="@mipmap/ic_launcher">
    

    You have to change your icon name inside this file.