是因为把这个 implementation 'androidx.appcompat:appcompat:1.2.0' 给删掉了。
dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
}
android studio 报错 AAPT: error: style attribute ‘attr/colorPrimary (aka com.
最新推荐文章于 2025-08-05 18:10:42 发布
本文详细解释了在Android Studio中因删除'appcompat'依赖导致的问题,并提供了正确的dependencies配置方法。
6930

被折叠的 条评论
为什么被折叠?



