<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更新配置,然后再改回去即可。