最近,根据新的Android指南,我将目标SDK更新为29,但在此之后,我收到了以下错误:
Apps\PatherPane\app\src\main\res\values\styles.xml:4:5-9:13: D:\Android
AAPT::属性‘attr//’(又名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
发布于 2020-08-21 22:13:06
确保您没有错过appcompat在build.gradle(app)中的实现
implementation ‘com.android.support:appcompat-v7:28.0.0’
或
implementation 'androidx.appcompat:appcompat:1.2.0'
如果使用androidx
发布于 2021-05-22 16:43:02
在一个库模块中,突然停止解析主题。
dependencies {
implementation "com.google.android.material:material:1.3.0"
}
发布于 2020-08-26 10:20:42
此错误通常出现在
androidx.appcompat:appcompat
和
com.google.android.material:material
版本不匹配。检查您是否更新了其中一个而不是另一个
https://stackoverflow.com/questions/63511989
复制相似问题