安卓preview不显示的问题


 

 

Render Problem

Failed to load AppCompat ActionBar with unknown error

 

 

解决方法:将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>

完美解决问题!

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM