I specified in the manifest the path to the new application icon: android:icon="@drawable/icon" Then I generated the apk and installed it on another device, but the icon is not displayed there. Why? enter image description here

  • and what kind of icon is elik
  • can I have more info? or the icon itself - elik
  • Use APK Analyzer and see what icons get into the APK, perhaps this will help to understand where they come from. - Eugene Krivenja
  • See if the Manifesto is worth the android:roundIcon="" parameter android:roundIcon="" . If yes, then remove. It is used in Android 8+ - Jarvis_J
  • @Jarvis_J helped thanks - Felay

3 answers 3

In AndroidManifest.xml remove the android:roundIcon="..." attribute android:roundIcon="..." . It is used for Android devices 8. +

In creating an icon through New=>ImageAsset it is called Adaptive . Normal (for all devices) - Legacy . You can turn off there.

    1) Make sure your .png format icon

    2) Check that your icon is located along the path drawable/icon.png

    3) Do the cleanup and re-create it this way. In Android Studio upstairs, click Build ->Clean Project after cleaning, Build->Rebuild Project do the Build->Rebuild Project

    • one
      Did not help. Attached picture. When debugging, an application with my icon is installed on the device. And when generating apk and installing apk on another device, the application is installed without my icon - Felay
    • upload code here check - elik
    • All application code? - Felay
    • let's see yes - elik
    • or git if there is - elik

    There are mipmap folders for application icons mipmap

     android:icon="@mipmap/ic_launcher" 

    Put your icon in this folder and check.

    Or do better this way:

    Click on the Res folder with the right mouse button New/ImageAsset then in the IconType field select LauncherIcons . Below, where the Path field indicate the path to your picture, Android Studio itself will generate the necessary folders and the desired size of the icon.

    • In any of them? Just my image has only 1 option - Felay
    • Well, that didn't help either - Felay
    • @Felay added answer - McDaggen
    • Why can't I select my Png image? The studio doesn't even want to open my image folder in its explorer - Felay