appcompat_v7 和 squareup-timesquare 之间的 attr titleTextColor 冲突

attr titleTextColor conflict between appcompat_v7 and squareup-timesquare

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

/Users/meee/Documents/workspace/TimesSquare/res/values/attrs.xml:8: error: Attribute "titleTextColor" has already been defined
/Users/meee/Documents/workspace/android-support-v7-appcompat/res/values/attrs.xml:832: error: Attribute "titleTextColor" has already been defined

我尝试从任一库中删除 titleTextColor 属性,当我刷新并清理它时,它最终会破坏 timessquareappcompat,具体取决于 titleTextColor 我删除了。

欢迎举报,但请解释。 大多数像这样的冲突都作为问题发布在 GitHub 上,例如 this,所以我能理解如果您将此问题标记为不合适。虽然我把它贴在这里,但认为在这种情况下,timessquareappcompat_v7.

可能不是问题

我的支持库是 23.1.1

非常感谢,伙计们。

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