error: failed linking references. -> QueuedJob

前端 未结 5 1796
时光说笑
时光说笑 2021-01-17 13:04

I was studying the Android Material Design using Kotlin and everything was going fine until I tried to use the android.support.design.widget.FloatingActionButton.

5条回答
  •  攒了一身酷
    2021-01-17 13:57

    You were referencing an attribute "textColor", when it should be "android:textColor".
    In app/src/main/res/values/styles.xml replace in line 13 and line 17:

    ... -> ...
    

    The how: the error from AAPT stated the following:

    error: style attribute 'attr/textColor (aka br.com.conseng.themedesign:attr/textColor)' not found.

    It points out that you (or your libraries) are using an attribute somewhere that is not recognized. I searched for "textColor" in your repository and came up with the two attributes with the name "textColor". The widely used attribute is "android:textColor" and you didn't define the attribute "textColor" anywhere yourself, so it looked like you were missing the "android:" prefix.

提交回复
热议问题