เมื่อฉันใช้รูปแบบต่อไปนี้
<!-- 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>
มันไม่มีข้อผิดพลาด
ทำไม