Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

把aar包集成到项目中报和V7包中资源冲突 #81

Open
chinapengwei opened this issue Aug 31, 2018 · 2 comments
Open

把aar包集成到项目中报和V7包中资源冲突 #81

chinapengwei opened this issue Aug 31, 2018 · 2 comments

Comments

@chinapengwei
Copy link

在我的工程中build.gradle中引入'com.liaoinstan.springview:library:1.5.0',报“Attribute "type" already defined with incompatible format.
Message{kind=ERROR, text=Attribute "type" already defined with incompatible format., sources=[C:\Users\chinapengwei.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.0.aar\a4e06ca6855feb60902ac8ff1dc8a097\res\values\values.xml:251:5-69], original message=, tool name=Optional.of(AAPT)}”,是资源冲突了。我在代码中找过,在代码中没有找到。我单独生成一个工程引入包则没有问题,应该是引用的第三方包造成的。请问有什么办法解决。

@liaoinstan
Copy link
Owner

SpringView 的自定义属性里已经定义了"type"这个属性了,你的工程中或者引入的其他自定义View也包含了同名属性

@chinapengwei
Copy link
Author

我知道原因,但不知道如何去除这种资源重复的冲突,我的工程中引用了很多第三方库,不知道和那个库有冲突,最后没办法只能拷代码到工程中,好在你的代码不多,比较好移植。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants