本文介绍了从Android Studio中的图像重建或重新生成"ic_launcher.png"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首次创建新项目时,该对话框可让您指向到某个外部.PNG文件,然后在该对话框完成后,它生成4种不同像素大小的图像,用作启动器图标.

When one first creates a new project, that dialog lets you pointto some external .PNG file, and then when that dialog completes,it generates 4 different pixel-sizes of images for use asa launcher-icon.

我的问题是:所以,如果一个人已经有一个现有的项目创建后,是否有地方告诉Studio重新生成4个新的此类文件,只需将其重新指向其他位置即可其他.PNG?

My question is: So, if one already has an existing projectcreated, is there someplace to tell the Studio to re-generate4 NEW such files, by just re-pointing it elsewhere, to someother .PNG?

我想到我可以开始一个新项目,然后手动复制到目前为止开发的所有其他文件,例如.JAVA和.XML文件等,但这似乎很多工作(我希望没有必要).

It occurred to me that I could start a new project and thenmanually copy all the other files developed so far, such asthe .JAVA and .XML files, etc, but that seems like a lot ofwork (that I hope won't be necessary).

推荐答案

对于Android Studio 0.4.0及更高版本,请单击"File > New > Image Asset".

For Android Studio 0.4.0 and later, click "File > New > Image Asset".

这篇关于从Android Studio中的图像重建或重新生成"ic_launcher.png"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 00:59