【问题标题】:attr titleTextColor conflict between appcompat_v7 and squareup-timesquareappcompat_v7 和 squareup-timesquare 之间的 attr titleTextColor 冲突
【发布时间】:2016-01-25 10:33:04
【问题描述】:

我正在建立一个依赖于appcompat_v7 和Android Times Square (com.squareup.timessquare) 的项目。每当我尝试运行我的项目时,我都会收到来自appcompat_v7 或时代广场的错误消息,如下所示:

/Users/meee/Documents/workspace/TimesSquare/res/values/attrs.xml:8: 错误:属性“titleTextColor”已被定义
/Users/meee/Documents/workspace/android-support-v7-appcompat/res/values/attrs.xml:832:错误:属性“titleTextColor”已被定义

我尝试从任一库中删除 titleTextColor 属性,但当我刷新和清理它时,它最终会破坏 timessquareappcompat,这取决于我删除了谁的 titleTextColor

请随意举报,但请解释一下。大多数此类冲突都在 GitHub 上发布为问题,例如 this,因此如果您将此问题举报为不恰当,我会理解的。虽然我在这里发布了它,但认为在这种情况下,timessquareappcompat_v7 可能不是问题。

我的支持库是 23.1.1

非常感谢,伙计们。

【问题讨论】:

    标签: android eclipse android-appcompat


    【解决方案1】:

    尝试将 TitleTextColor 从 TimesSquare/res/values/attrs.xml 重命名为 titleTextColorx 并更改 titleTextColor = a.getColor(R.styleable.CalendarPickerView_tsquare_titleTextColorx 来自 com/squareup/timessquare/CalendarPickerView.java

    【讨论】:

      猜你喜欢
      • 2015-09-22
      • 2012-06-27
      • 2012-03-06
      • 2011-05-02
      • 2012-11-25
      • 2013-10-27
      • 2014-03-02
      • 2016-11-15
      • 2012-11-02
      相关资源
      最近更新 更多