NIM_Android_Demo
NIM_Android_Demo copied to clipboard
res /values/attrs-ptr.xml Attribute "radius" already defined with incompatible format.
在整合个uikit 到项目的时候,会编译出错。 在添加编译检查后得知如下问题: Attribute "radius" already defined with incompatible format. 最后定位在
uikit 项目下的 res /values/attrs-ptr.xml 文件中的 自定义radius 属性。
编译环境为:
minSdkVersion = 21 targetSdkVersion = 27 compileSdkVersion = 27 buildToolsVersion = '28.0.3' versionCode = 185 versionName = '4.3.1.0' appSourceCompatibility = 1.7 appTargetCompatibility = 1.7 主项目 已经开启aapt2 检查
暂时解决方式: 修改 res /values/attrs-ptr.xml 中的radius 属性,添加为任意前缀即可 例如:xxradius ,请使用Androidstudio 的系统重构工具,进行重命名。
最后: 编译通过,顺利集成到到主项目