最近根据新的Android指南更新了我的目标SDK到29,但之后我收到了这个错误:
D:\ Android Apps \ PatherPane \ app \ src \ main \ res \ values \ styles.xml:4:5-9:13:AAPT:错误:找不到样式属性'attr / colorPrimary(又名com.patherpane.app:attr / colorPrimary)'
而我的样式XML文件如下:
<!-- Base application theme. -->
<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>
<style name="SplashScreen" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowBackground">
@drawable/background_splashscreen
</item>
</style>
我应该如何修复这个问题?
输入以下命令加上项目名称会显示错误:Theme.AppCompat.Light.DarkActionBar