Style attribute attr/colorSecondary not found

前端 未结 3 1780
走了就别回头了
走了就别回头了 2020-12-18 21:15

I can\'t build my project. It shows me attr/colorSecondary not found error.

These are my styles and manifest files:

Android studi

3条回答
  •  渐次进展
    2020-12-18 21:22

    Had the similar problem after I added a car lib.

    AAPT: error: style attribute 'attr/listChoiceIndicatorSingleAnimated (aka ****debug:attr/listChoiceIndicatorSingleAnimated)' not found.
    

    That missing attribute was available in

    implementation 'androidx.preference:preference:1.1.1'
    

    Just check which lib the missing attribute is available in and add that as dep.

提交回复
热议问题