I believe this is what you're looking for. Eg for actionbarsherlock:
//actionbarsherlock
compile ('com.actionbarsherlock:actionbarsherlock:4.4.0@aar') {
transitive = true
exclude (group: "com.google.android") //conflicts with support-v4 from
gradle
}
Op zondag 30 november 2014 03:34:06 UTC+1 schreef John Frey:
>
> It's been a long standing issue it seems...
> https://groups.google.com/forum/#!topic/adt-dev/l1gELhPSSkM
>
> On Saturday, November 29, 2014 5:49:57 AM UTC-6, Vyacheslav Blinov wrote:
>>
>> 1. It's not me who doing that, but some external library (I don't think
>> it's important which project it is), that was just published.
>> 2. Why is that criminal given that aar format supports that? Given it
>> lies in design of aar there were about to be some kind of support for that
>> situation. I suppose many people just migrated their ant builds blindly
>> like that. If it is something unsupported why make aar support that?
>>
>> суббота, 29 ноября 2014 г., 5:12:03 UTC+3 пользователь Jake Wharton
>> написал:
>>>
>>> Why are you using the jar instead of declaring a normal dependency on
>>> the support library?
>>>
>>> On Fri Nov 28 2014 at 8:05:26 AM Vyacheslav Blinov <
>>> [email protected]> wrote:
>>>
>>>> Hi! I have a library, which has libs/android-support-v4.jar inside of
>>>> its aar, as one of my dependency, and obviously proguard and dex both will
>>>> not let that happen that duplicated class appear in my build. How can I
>>>> exclude such bundled library from dependency aar? Standard exclude does
>>>> not
>>>> helps (and if you think about it it shouldn't because that lib is not
>>>> added
>>>> as an explicit transitive dependency with explicit descriptor).
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "adt-dev" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.