创建新的图像资产时,Android Studio无法加载图像 [英] Android Studio not loading image when creating new image asset

查看:90
本文介绍了创建新的图像资产时,Android Studio无法加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将新的图像资产添加到android studio中,我已经按照几个步骤正确添加了它们,但是IDE并未加载该图像.

I'm trying to add new image assets to android studio and I have followed a couple of steps to add them correctly, but the IDE is not loading the image.

我已经按照以下步骤

这是我遵循这些步骤的结果.图像只是那样的灰色,即使我完成添加,组件上的图像仍然是灰色的.

Here is my result of following those steps. The image is just greyed like that and even if I finish adding it, it's still grey on the components.

谢谢

推荐答案

您可以将插件用于Android Studio.

You can use plugin for Android Studio.

  1. 转到文件->设置->插件.
  2. 搜索"Android Drawable Importer"并安装.
  3. 重新启动Android Studio.

现在,您可以在下拉菜单中使用批量绘制可导入"

Now you can use Batch Drawable Import in dropdown menu

您可以逐步了解如何操作

You can see how to do it step by step here

在资产导入"窗口的图标类型"中设置启动器图标". 这将以原始颜色添加图像,并且不会显示为灰色.

Set "Launcher icons" in "Icon Type" in Asset Import window. This will add the images in their original color and will not be greyed out.

这篇关于创建新的图像资产时,Android Studio无法加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆