Ketika saya menggunakan gaya berikut
<!-- Base application theme. -->
<style name="AppTheme" parent="android:Theme.Material.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
Saya mendapatkan kesalahan:
java.lang.RuntimeException: Tidak dapat memulai aktivitas ComponentInfo{com.xx.xx/com.xx.xx.setup.SetupASelectLanguageActivity}: java.lang.IllegalStateException
Ketika saya mengubahnya menjadi:
<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>
Itu tidak memberikan kesalahan.
Mengapa?