android studio中rendering problems解决方法

android studio中xml不能preview

打开res/values/styles.xml ,如下:

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
</style>

把Theme.AppCompat.Light.DarkActionBar改为Base.Theme.AppCompat.Light.DarkActionBar

你可能感兴趣的:(android,Preview)