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

Gradle传递依赖问题 #3

Open
tianshaojie opened this issue Sep 7, 2015 · 2 comments
Open

Gradle传递依赖问题 #3

tianshaojie opened this issue Sep 7, 2015 · 2 comments

Comments

@tianshaojie
Copy link

今天遇到的一个问题是:
添加compile 'com.bigkoo:alertview:1.0.0'
下载alertview-1.0.0后会传递依赖下载support-v4,appcompat-v7,support-annotation-21
而我的libs下已经有support-v4,造成编译时找个两个相同的类,无法启动。

目前解决办法是:
compile('com.bigkoo:alertview:1.0.0') {
exclude module: 'support-v4'
exclude module: 'appcompat-v7'
}

想问一下,如果排除appcompat-v7后是否有问题?
是否可以关闭传递依赖?

@saiwu-bigkoo
Copy link
Owner

对于gradle我还不熟,请教下怎么才能在打包aar的时候正确排除掉 v4 v7包呢?

@tianshaojie
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