Render Problem

Failed to load AppCompat ActionBar with unknown error

 

安卓preview不显示的问题

 

解决方法:将styles.xml文件中的:

 

<resources>

修改:
<!-- Base application theme. -->
<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>


修改后:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
</style>

</resources>

完美解决问题!

 

相关文章:

  • 2021-08-31
  • 2021-11-30
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-05-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-08-22
  • 2021-06-17
  • 2021-11-21
  • 2021-09-17
  • 2021-06-29
相关资源
相似解决方案