答案 0 :(得分:0)
这是我在android中工作时遇到的问题之一。 您必须编辑res / values / styles.xml文件
<!-- Base application theme. -->
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
</style>
步骤如下: 转到res / values / 打开styles.xml
从->样式名称=“ AppTheme” parent =“ Theme.AppCompat.Light.DarkActionBar”更改
更改为->样式名称=“ AppTheme” parent =“ Base.Theme.AppCompat.Light.DarkActionBar”
(只需在“主题”之前加上“基本”即可。)
保存文件并选中“立即预览”。
预览现在可以正常运行。