将@color改为?android:attr <?xml version="1.0" encoding="utf-8"?> <resources> <!-- Base application theme. --> <style name="AppTheme_" parent="Theme.AppCompat.Light.NoActionBar"> <!-- Customize your theme here. --> <item name="android:colorPrimary">?android:attr/colorPrimary</item> <item name="android:colorPrimaryDark">?android:attr/colorPrimaryDark</item> <item name="android:colorAccent">?android:attr/colorAccent</item> </style> </resources>
@color/colorPrimary @color/colorPrimaryDark @color/colorAccent not found
最新推荐文章于 2023-04-12 09:26:41 发布