1、A TaskDescription's primary color should be opaque
翻译—–任务描述:primary color 本应该为不透明的
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowTranslucentStatus">true</item>
</style>
就是colorPrimary
和colorPrimaryDark
的颜色值应该使用6位十六进制数,而不是8位16进制数,如下使用color2
就会报错,使用color1
就不会,因为color2
加上了透明度66
<color name="color1">#BBBBBB</color>
<color name="color2">#66BBBBBB</color>