日常get知识记录【5】A TaskDescription‘s primary color should be opaque

    技术2023-11-25  99

    在Android开发时,碰到了android6.0及以下版本运行时,软件闪退

    结果Debug后,发现出现了A TaskDescription's primary color should be opaque的错误

     

    原因:主题不可以使用透明的颜色,修改为如下

    <item name="colorPrimary">@color/colorPrimary</item> <color name="colorPrimary">#3F51B5</color>
    Processed: 0.019, SQL: 9