Background with vector drawable crashes on Android 6

I am trying to set this below vector as background of a RelaativeLayout.

<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="344dp"
android:height="200dp"
android:viewportWidth="344"
android:viewportHeight="200">
<path
    android:fillType="nonZero"
    android:pathData="M10,0L334,0A10,10 0,0 1,344 10L344,190A10,10 0,0 1,334 200L10,200A10,10 0,0 1,0 190L0,10A10,10 0,0 1,10 0z">
    <aapt:attr name="android:fillColor">
        <gradient
            android:endX="330.50143"
            android:endY="122.16"
            android:startX="71.5004"
            android:startY="89.108"
            android:type="linear">
            <item
                android:color="#FFE8E7FA"
                android:offset="0" />
            <item
                android:color="#FFDAD4F9"
                android:offset="1" />
        </gradient>
    </aapt:attr>
</path>

But it crashes in Android 6. What’s wrong here?