类型“ attr”的值无效。希望参考

时间:2019-05-19 10:33:09

标签: android android-layout

我正在做别人写的一个旧项目。有一部分

<color name="colorPrimary">#2B3D4D</color>

出现错误

error: style attribute 'attr/colorPrimary 

然后根据此帖子Style attribute attr/colorSecondary not found

我试图进行更改

<item type="attr" name="colorPrimary">#2B3D4D</item>

现在我遇到另一个错误,即:

invalid value for type 'attr'. Expected a reference.

0 个答案:

没有答案