不知道是否是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>