我将compileSDKVersion设置为27,现在我的Android应用程序上出现了一个默认(黑白)图标
我究竟做错了什么?
您还需要使用android:roundIcon="@mipmap/ic_launcher_round"
圆形图标资源 https://developer.android.com/about/versions/nougat/android-7.1
当启动器请求应用程序图标时,框架会返回 android:icon 或 android:roundIcon,具体取决于设备构建配置。因此,应用程序应确保在响应启动器意图时定义 android:icon 和 android:roundIcon 资源。
<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">
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)