我想将 xml drawables 导入我的项目中 . 我已经使用此工具从svgs转换了这些xmls .

http://a-student.github.io/SvgToVectorDrawableConverter.Web/

该文件转换得很好,但当我尝试构建项目时,它显示此错误 . 和许多类似的错误(例如 error: attribute 'starter.umair.memeify:viewportWidth' not found

error: attribute 'starter.umair.memeify:pathData' not found.
Message{kind=ERROR, text=error: attribute 'starter.umair.memeify:pathData' not found., sources=[D:\Android\Memeify\app\src\main\res\drawable-v24\_3__10_.xml:18], original message=, tool name=Optional.of(AAPT)}

xml 文件中存在 attribute . 以下是我试图导入的近300个xmls之一 .

<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/aapt"
    xmlns:better="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns="http://schemas.android.com/apk/res/android"
    android:height="512.008dp"
    android:viewportHeight="512.008"
    android:viewportWidth="512.008"
    android:width="512.008dp"
    better:viewportHeight="512.008"
    better:viewportWidth="512.008"
    tools:ignore="NewApi">
    <path
        android:fillColor="#a0041e"
        android:pathData="M231.166 435.426C358.433 435.426 461.592 332.267 461.592 205L0.74 205c0 127.267 103.174 230.426 230.426 230.426"
        better:fillColor="#a0041e"
        better:pathData="M231.166 435.426C358.433 435.426 461.592 332.267 461.592 205L0.74 205c0 127.267 103.174 230.426 230.426 230.426" />
    <path
        android:fillColor="#ccd6dd"
        android:pathData="M435.307 191.498c0 55.173 -91.393 99.904 -204.143 99.904 -112.75 0 -204.144 -44.732 -204.144 -99.904 0 -55.172 91.392 -99.904 204.143 -99.904 112.751 0 204.144 44.732 204.144 99.904"
        better:fillColor="#ccd6dd"
        better:pathData="M435.307 191.498c0 55.173 -91.393 99.904 -204.143 99.904 -112.75 0 -204.144 -44.732 -204.144 -99.904 0 -55.172 91.392 -99.904 204.143 -99.904 112.751 0 204.144 44.732 204.144 99.904" />
    <path
        android:fillColor="#ea596e"
        android:pathData="M462.321 205c0 70.913 -103.491 128.419 -231.161 128.419C103.49 333.419 0 275.914 0 205 0 134.086 103.491 76.581 231.161 76.581c127.67 0 231.16 57.505 231.16 128.419"
        better:fillColor="#ea596e"
        better:pathData="M462.321 205c0 70.913 -103.491 128.419 -231.161 128.419C103.49 333.419 0 275.914 0 205 0 134.086 103.491 76.581 231.161 76.581c127.67 0 231.16 57.505 231.16 128.419" />
    <path
        android:fillColor="#662113"
        android:pathData="M442.024 205c0 61.394 -94.388 111.166 -210.855 111.166 -116.467 0 -210.868 -49.771 -210.868 -111.166 0 -61.395 94.403 -111.166 210.868 -111.166 116.465 0 210.855 49.772 210.855 111.166"
        better:fillColor="#662113"
        better:pathData="M442.024 205c0 61.394 -94.388 111.166 -210.855 111.166 -116.467 0 -210.868 -49.771 -210.868 -111.166 0 -61.395 94.403 -111.166 210.868 -111.166 116.465 0 210.855 49.772 210.855 111.166" />
    <path
        android:fillColor="#99aab5"
        android:pathData="M303.174 241.004c0 35.788 -51.586 64.807 -115.213 64.807 -63.627 0 -115.213 -29.018 -115.213 -64.807 0 -35.789 51.586 -64.807 115.213 -64.807 63.627 0 115.213 29.019 115.213 64.807"
        better:fillColor="#99aab5"
        better:pathData="M303.174 241.004c0 35.788 -51.586 64.807 -115.213 64.807 -63.627 0 -115.213 -29.018 -115.213 -64.807 0 -35.789 51.586 -64.807 115.213 -64.807 63.627 0 115.213 29.019 115.213 64.807" />
    <path
        android:fillColor="#ccd6dd"
        android:pathData="M259.97 262.607c0 19.889 -32.245 36.004 -72.008 36.004 -39.763 0 -72.008 -16.115 -72.008 -36.004 0 -19.889 32.245 -36.004 72.008 -36.004 39.763 0 72.008 16.115 72.008 36.004"
        better:fillColor="#ccd6dd"
        better:pathData="M259.97 262.607c0 19.889 -32.245 36.004 -72.008 36.004 -39.763 0 -72.008 -16.115 -72.008 -36.004 0 -19.889 32.245 -36.004 72.008 -36.004 39.763 0 72.008 16.115 72.008 36.004" />
    <path
        android:fillColor="#99aab5"
        android:pathData="M265.797 193.285c0 0 44.213 17.397 109.395 -31.482 57.607 -43.205 100.811 -57.607 115.213 -57.607 28.803 0 28.803 43.205 0 43.205 -28.803 0 -57.607 14.402 -100.811 43.205 -33.901 22.582 -105.837 86.41 -105.837 86.41l-17.96 -83.731z"
        better:fillColor="#99aab5"
        better:pathData="M265.797 193.285c0 0 44.213 17.397 109.395 -31.482 57.607 -43.205 100.811 -57.607 115.213 -57.607 28.803 0 28.803 43.205 0 43.205 -28.803 0 -57.607 14.402 -100.811 43.205 -33.901 22.582 -105.837 86.41 -105.837 86.41l-17.96 -83.731z" />
</vector>

现在,这些 xml 文件的数量很大 . 因此,我无法对每个文件进行更改 .

请告诉我,如果我做错了,并且有更好的方法 .

任何帮助,将不胜感激 .