error: failed linking references. -> QueuedJob

岁酱吖の 提交于 2019-12-01 16:16:16

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:

<item name="textColor">...</item> -> <item name="android:textColor">...</item>

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.

Rohit Dayani

Go to build.gradle(app) and add this in dependency:

implementation 'com.android.support:appcompat-v7:28.0.0'

Right now my compileSdkVersion is 28, so it is 28.0.0.

Try and change according to that.

For my situation, my compileSdkVersion < targetSdkVersion in build.gradle. Just change compileSdkVersion >= targetSdkVersion.

I've just deleted my color resourse, but it have been used in my style. So, check if your colors are really not using anywhere by Ctrl+Shift+F.

vaisakh mv

Remove this line from dependencies in gradle build file:

implementation 'com.android.support.constraint:constraint-layout:+'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!