Когда я использую следующий стиль
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Material.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
Я получаю сообщение об ошибке:
java.lang.RuntimeException: невозможно запустить активность ComponentInfo{com.xx.xx/com.xx.xx.setup.SetupASelectLanguageActivity}: java.lang.IllegalStateException
Когда я меняю его на:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
Это не дает ошибки.
Почему?