【问题标题】:Where option -> New > Vector Asset on Android Studio?在哪里选项 - > 新建 > Android Studio 上的矢量资产?
【发布时间】:2021-09-22 20:38:21
【问题描述】:

我想将 SVG 图像添加到 Res 文件夹。右键单击res中的选项->添加新文件...没有资产向量...为什么?怎么了?

【问题讨论】:

  • 嗯?在哪里?帮帮我!!!

标签: android-studio svg


【解决方案1】:

按照此路径查找新矢量资源

app->res->drawable。右键点击drawable 然后New->Vector Asset

参考下图:

我希望它对你有用。

【讨论】:

    【解决方案2】:

    第一步,您必须正确构建项目。

    作为https://developer.android.com/studio/build

    问题出现在你的 android studio 的底部栏上。

    【讨论】:

      【解决方案3】:

      尝试使用不同版本的 Android(4.4 之前)让“Vector Assert”出现在“新建”上下文菜单中。 Path to Vector Asset

      【讨论】:

        【解决方案4】:

        如果有的话,以上所有方法都不起作用 -
        这是我们可以做的,
        帮助我成功获得了 Image Asset & Vector Asset-

        转到File > Open 然后打开android 目录..

        看这里 --> how to open and proceed

        然后在NEW WINDOW打开如下图-

        看这里 --> where to open the android in new window

        在打开android 目录的新窗口中,您会看到选项Successfully -

        最后点击这里 --> You will get the options for Image Asset & Vector Asset

        【讨论】:

        • 这有点讽刺不是吗?我在 2 年零 7 个月前问过!
        猜你喜欢
        • 2016-02-13
        • 1970-01-01
        • 1970-01-01
        • 2015-12-31
        • 1970-01-01
        • 2014-06-17
        • 1970-01-01
        • 1970-01-01
        • 2016-01-12
        相关资源
        最近更新 更多