App icon doesn't show (Android Studio)

前端 未结 4 1611
感情败类
感情败类 2020-12-18 10:50

This is my very first time to make an android application. I\'ve only made 3 designs for my very first app but every time I ran the Android Virtual Device, the icon of my ap

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-18 11:25

    You should check on an android phone if you can download and play the app. If the problem is only with the emulator - it does get buggy, so the regular reinstalling the emulator/android studios, restarting your computer, trying to install a different emulator might work.

    Otherwise:

    The relevant line to look at is:

    android:icon="@mipmap/ic_launcher"
    

    This means that the app is going to the 'mipmap' folder inside your directory, and looking for a file named 'ic_launcher' - to display it as the App icon.

    You need to make sure this file name exists in the proper folder, and is in the correct format(this guide might help )

    How to find the image location folder

    If this doesn't help: remember that icons can be displayed at different qualities for different devices (hdpi, mdpi, xhdpi....) so sometimes if you want to make your own icon you need to make sure it fits the requirements (in the above guide)

提交回复
热议问题