今天使用 Matisse 框架时,编译错误如下
Process 'command 'xxx\23.0.3\aapt.exe'' finished with non-zero exit value 1
查看详情:
Message{kind=ERROR, text=Attribute "listPopupWindowStyle" has already been defined, sources=[D:\xxxx\app\build\intermediates\res\merged\debug\values\values.xml:1035], original message=, tool name=Optional.of(AAPT)}
Attribute "listPopupWindowStyle" has already been defined
经过查询...发现是Matisse中的listPopupWindowStyle属性名和appcompat-v7包中的listPopupWindowStyle属性名冲突...
解决方式.
app->
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
....
}
将构件工具版本升级到 25.0.2 后编译通过..
记录一下~