【发布时间】:2021-10-13 23:12:07
【问题描述】:
我想在 Android 12 上自定义我的启动画面,但我收到了 AAPT 错误:
AAPT: error: style attribute 'android:attr/windowSplashScreenAnimatableIcon' not found.
以下是样式的相关部分:
<style name="SplashTheme" parent="@style/Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:windowSplashScreenAnimatableIcon">@drawable/ic_splash</item>
</style>
也就是documentation中提到的属性。
以下是我正在使用的构建工具库的概述:
compileSdk="android-S"
minSdk=21
targetSdk="S"
buildTools='31.0.0-rc4'
我使用 Android Studio 北极狐 | 2020.3.1 Beta 1 仅供记录。
谁能指出我做错了什么?
【问题讨论】:
标签: android splash-screen styling android-12