Rebuild or regenerate 'ic_launcher.png' from images in Android Studio

前端 未结 15 902
清歌不尽
清歌不尽 2020-12-22 21:03

When one first creates a new project, that dialog lets you point to some external .PNG file, and then when that dialog completes, it generates 4 different pixel-sizes of ima

15条回答
  •  情书的邮戳
    2020-12-22 21:33

    Just in case anyone else visits this post I thought I'd describe what I did.

    1. Right click on res folder > New image asset

    2. browser to the icon. Click next

    3. By default the icon goes to src/debug/res- keep this

    4. In the project hierarchy, browse to src/debug/res and copy the files from the drawable* directories to the same directories in src/main and src/main

    5. copy the src/debug/res/icon_name.png to the src/main and src/release directories

提交回复
热议问题