Icons suddently not working Android Studio


Icons suddently not working Android Studio



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?





try to invalidate the the cache and restart.
– Lalit Sharma
Jul 2 at 9:57





Unfortunately I've tried that
– stevenpcurtis
Jul 2 at 10:00





try to rename image and get it again, sometimes its create issue because of cache.
– Hemant Parmar
Jul 2 at 10:10





Just recreated as "icons.png", but it's rubbish as a solution
– stevenpcurtis
Jul 2 at 10:13





are you able to get image from drawable folder?
– Hemant Parmar
Jul 2 at 10:15




2 Answers
2



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


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">





<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher" android:allowBackup="false" android:theme="@style/AppTheme" > does the same: i.e. default icon
– stevenpcurtis
Jul 2 at 10:02





Apps can now define circular launcher icons - But I don't want a circular icon!
– stevenpcurtis
Jul 2 at 10:04





@stevenpcurtis but users want that. Your icon will look bad among other circular icons when a user switches launcher icons in round mode. You will hurt only your UX by trying to workaround round icons.
– 3mpty
Jul 2 at 10:14





@3mpty agree with u
– Nilesh Rathod
Jul 2 at 10:19


android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"`






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

api-platform.com Unable to generate an IRI for the item of type

How to set up datasource with Spring for HikariCP?

Display dokan vendor name on Woocommerce single product pages