Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
199 views
in Technique[技术] by (71.8m points)

android - How to exclude multiple file reference from Gradle file

One of the SDK requires com.commonsware.cwac:merge:1.1.1 in my project. So i added it. After adding it one of the SDK that was working fine before, started crashing. If i remove com.commonsware.cwac:merge:1.1.1, it works fine again.

When i check dependency-tree of my older project(The one which does not have commonsware1.1.1 defined in the gradle file) Thecommonsware library does not appear in dependency-tree, but when i check the Method Count It displays commonsware methods there in the method count list.

enter image description here

After adding commonsware in the gradle file,

compile 'com.commonsware.cwac:merge:1.1.1'

It displays commonsware in the dependency-tree as well as in method-count, but commonsware is displaying 63-Methods in Method Count here.

enter image description here

This may be the reason that after adding the commonsware1.1.1, the app is crashing on the older SDK.

The 2 commonsware libraries may be conflicting, Kindly guide me how to tackle this.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...