找不到drawable/ic_launcher_foreground.如何找到该xml文件 [英] drawable/ic_launcher_foreground not found. How to find that xml file
本文介绍了找不到drawable/ic_launcher_foreground.如何找到该xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Gradle构建失败,因为它无法在drawable中找到ic_launcher_foreground.xml.
Gradle build is not successful because it cannot find ic_launcher_foreground.xml in drawable.
推荐答案
如果从您的android项目中删除ic_launcher_foreground.xml
或ic_launcher_background.xml
文件,则无需担心.
If at all you delete the ic_launcher_foreground.xml
or ic_launcher_background.xml
files from your android project then no need to worry.
Simply,
- 右键单击可绘制目录(在res文件夹内),然后选择新建--->图片资产". (上面的2个命名文件将使用ic_laucher自动生成)
- 然后单击下一步,最后完成.
这篇关于找不到drawable/ic_launcher_foreground.如何找到该xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文