5.1 Crash - A TaskDescription's primary color should be opaque

后端 未结 4 2064
礼貌的吻别
礼貌的吻别 2020-11-29 05:26

I have implemented material design into my app and it runs perfectly fine on < Android 5 but when I try to run on Android 5.0 and above I get the following in my logcat.<

4条回答
  •  感情败类
    2020-11-29 05:33

    You can not use alfa in primary color. The primary color has to be opaque.

    Change:

    #4DFF9800
    #4D607D8B
    

    To

    #FF9800
    #607D8B
    

    for api 21 in res/values-v21/style.xml file

提交回复
热议问题