今天在github上clone了一份优秀源代码,准备研究一下。但是导入android studio遇到了各种各样的问题。
Error:(2) Attribute "titleTextColor" has already been defined 就是其中一个问题。
google后,发现RootCause是由于compile的一个开源库中属性冲突所致。
solution address:
https://github.com/square/android-times-square/issues/226
将:app/build.gradle文件修改:
- compile 'com.squareup:android-times-square:1.5.0@aar'
+ compile 'com.squareup:android-times-square:1.6.3@aar'
Error:(2) Attribute "titleTextColor" has already been defined 这个问题在新的版本中修复了,因此我只需要修改到最新版本即可以解决。