<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>
Theme標紅,報錯:Coulde not resolve symbol..... 找不到默認資源的問題,修改build.gradle文件中的dependencies中的配置將
implementation 'com.android.support:appcompat-v7:27.1.1'
先改爲
implementation 'com.android.support:appcompat-v7:27.0.1'
讓gradle更新配置,然後再改回去即可。