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

前端 未结 15 867
清歌不尽
清歌不尽 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:25

    I can confirm that in Android Studio 1.x (here AS) on Windows also the right sequence is:

    • File -> New
    • AS opens a list where you must click on Image Asset
    • AS opens a dialog where the app\src\main\res Directory Structure is automatically selected (the right choice)
    • Clicking on the OK button, AS opens the Asset Studio dialog where you can find all the tools and options we had on the past Eclipse ADT

    This can be done absolutely in any moments after creation of the project.

    Android Studio warns you that it will overwrite the current ic_launcer, but this is exactly what we expect to do.

提交回复
热议问题