不知道是否是android studio安装不对的问题,每次新建项目都有这个问题。android
临时解决方法是:app
打开 styles.xml 在Theme.AppCompat.Light.DarkActionBar前面加上Basexml
<!-- Base application theme. --><style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --></style>