My app icon was displaying correctly. A png file. But somewhere along the way, it has turned into a black square. As far as I know, I haven't changed this since the beginning.
Here is the app in Android Studio 3.5.2
Here is how it is specified in my Manifest file
<application
android:allowBackup="true"
android:icon="@mipmap/bd50"
android:label="@string/app_name"
android:roundIcon="@mipmap/bd50"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true">
This is not how it works. U should call all the icon's the same only difference is the dpi's. Your phone will choose the right image to display. Now you are forcing bd50 which isn't supported by your phone as dpi.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.