gpt4 book ai didi

android - @android :color/holo_blue_light requires API level 14 - previously it was OK

转载 作者:太空狗 更新时间:2023-10-29 15:53:36 24 4
gpt4 key购买 nike

我有 android:minSdkVersion="11"android:targetSdkVersion="11"

在我的主题中,我使用了对@android:color/holo_blue_light的引用

直到现在(在很多个月内)一切正常。现在我在一个地方将 @android:color/holo_blue_light 更改为 @android:color/background_dark 并且突然在所有我有 holo_blue_light 的地方> 我有一个错误:

@android:color/holo_blue_light requires API level 14 (current min is 11)        Android Lint Problem

他们是否更改了 sdk 本身的某些内容?即使我只使用 holo_blue_light 手动返回到以前版本的文件,我仍然有同样的错误。 (而且可以肯定的是,最新的 sdk 定义是由 Eclipse 从 Internet 自动下载的。它在 sdk 11 的最低要求下工作了很多个月)。

有什么帮助吗?这不是我的应用程序问题而是 sdk 问题吗?

最佳答案

我知道这已经过时了,但对于任何展望 future 的人来说,全息颜色定义是:

<!-- A light Holo shade of blue -->
<color name="holo_blue_light">#ff33b5e5</color>
<!-- A light Holo shade of gray -->
<color name="holo_gray_light">#33999999</color>
<!-- A light Holo shade of green -->
<color name="holo_green_light">#ff99cc00</color>
<!-- A light Holo shade of red -->
<color name="holo_red_light">#ffff4444</color>
<!-- A dark Holo shade of blue -->
<color name="holo_blue_dark">#ff0099cc</color>
<!-- A dark Holo shade of green -->
<color name="holo_green_dark">#ff669900</color>
<!-- A dark Holo shade of red -->
<color name="holo_red_dark">#ffcc0000</color>
<!-- A Holo shade of purple -->
<color name="holo_purple">#ffaa66cc</color>
<!-- A light Holo shade of orange -->
<color name="holo_orange_light">#ffffbb33</color>
<!-- A dark Holo shade of orange -->
<color name="holo_orange_dark">#ffff8800</color>
<!-- A really bright Holo shade of blue -->
<color name="holo_blue_bright">#ff00ddff</color>
<!-- A really bright Holo shade of gray -->
<color name="holo_gray_bright">#33CCCCCC</color>

参见 https://github.com/android/platform_frameworks_base/blob/master/core/res/res/values/colors.xmlthis answer了解更多详情。

关于android - @android :color/holo_blue_light requires API level 14 - previously it was OK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20863513/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com