0

I set my compileSDKVersion to 27, and now I get a default (b&w) icon on my Android App

enter image description here

enter image description here

What am I doing wrong?

AskNilesh
  • 67,701
  • 16
  • 123
  • 163
stevenpcurtis
  • 1,907
  • 3
  • 21
  • 47

2 Answers2

2

You also need to use android:roundIcon="@mipmap/ic_launcher_round"

Round Icon Resources

When a launcher requests an app icon, the framework returns either android:icon or android:roundIcon, depending on the device build configuration. Because of this, apps should make sure to define both android:icon and android:roundIcon resources when responding to launcher intents.

<application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
AskNilesh
  • 67,701
  • 16
  • 123
  • 163
0
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"`
Tim Diekmann
  • 7,755
  • 11
  • 41
  • 69