'Why does it show Invalid color value ?attr/textcolor Android Studio
I'm trying to build a Generated signed bundle in Android Studio but it doesn't work. It shows this error message.
270 exceptions were raised by workers: A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$RunnableWrapperWorkAction A failure occurred while executing (and much longer)
Invalid color value ?attr/textcolor
This is my code below
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M18,6L6,18"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:fillColor="#00000000"
android:strokeColor="?attr/textcolor"
tools:ignore="VectorRaster"
android:strokeLineCap="round"/>
<path
android:pathData="M6,6L18,18"
tools:ignore="VectorRaster"
android:strokeLineJoin="round"
android:strokeWidth="2.5"
android:fillColor="#00000000"
android:strokeColor="?attr/textcolor"
android:strokeLineCap="round"/>
</vector>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|