错误:属性'SrcCompat'已被定义 [英] Error: Attribute 'SrcCompat' has already been defined

查看:483
本文介绍了错误:属性'SrcCompat'已被定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次尝试构建或生成签名的APK时,我都会遇到上述错误。



我的错误日志快照:



支持库已更新



[]

解决方案

终于找到了方法。重新开始项目,并开始每次导入一个lib,直到出现错误。显然这个第三方lib
' com.github.ozodrukh:RippleDrawable:2.0.0 '定义了srcCompat,就像AppCompat一样。所以我评论说,它构建得很好......


Every time I try to build or generate signed APK I get the above error. This question is similar but no working solution has been suggested, yet.

A snap of my BUILD.GRADLE dependencies:

A snap of my Error Log:

Support Library Updated

[]

解决方案

finally got a way round it. Renewed the project and started importing one lib at a time to the point I got the error. Apparently this third party lib 'com.github.ozodrukh:RippleDrawable:2.0.0' defined srcCompat just like AppCompat does. So I commented it out and it Builds just fine...

这篇关于错误:属性'SrcCompat'已被定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆