Yes, I have repackaged my private libraries to not include the STL library and moved that into a dependency so gradle can handle this.
Kloon 2015-01-21 21:35 GMT+01:00 resh <reshmy.ni...@gmail.com>: > Were you able to get around this issue? Is there a fix or a workaround? > > thanks! > > > On Wednesday, November 12, 2014 at 4:23:54 AM UTC-8, Kloon wrote: >> >> Is there an ETA for this? >> >> 2014. november 11., kedd 18:44:31 UTC+1 időpontban Xavier Ducrohet a >> következőt írta: >>> >>> It's more a limitation than a regression because it never applied to >>> packaged libraries. >>> >>> On Tue, Nov 11, 2014 at 5:18 AM, Kloon <klo...@gmail.com> wrote: >>> >>>> I have multiple native libraries included in my project which mutually >>>> contain the stlport_shared library and the DSL to exclude/pickFirst has no >>>> effect, it always results in the following error nonetheless: >>>> >>>> Error:duplicate files during packaging of APK *** >>>> Path in archive: lib/armeabi/libstlport_shared.so >>>> Origin 1: ***\build\intermediates\exploded-aar\hu.uni_pannon. >>>> lavinia\absorptionmodel\1.0.0\jni\armeabi\libstlport_shared.so >>>> Origin 2: ***\src\main\jniLibs\armeabi\libstlport_shared.so >>>> You can ignore those files in your build.gradle: >>>> android { >>>> packagingOptions { >>>> exclude 'lib/armeabi/libstlport_shared.so' >>>> } >>>> } >>>> >>>> This is what I have in the build.gradle file: >>>> >>>> android { >>>> packagingOptions { >>>> exclude 'META-INF/LICENSE.txt' >>>> exclude 'META-INF/LICENSE' >>>> exclude 'META-INF/NOTICE.txt' >>>> exclude 'META-INF/NOTICE' >>>> >>>> pickFirst 'lib/armeabi/libstlport_shared.so' >>>> pickFirst 'lib/armeabi-v7a/libstlport_shared.so' >>>> pickFirst 'lib/x86/libstlport_shared.so' >>>> } >>>> } >>>> >>>> Is this a known regression? >>>> >>>> -- >>>> 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 adt-dev+u...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> >>> >>> -- >>> Xavier Ducrohet >>> Android SDK Tech Lead >>> Google Inc. >>> http://developer.android.com | http://tools.android.com >>> >>> Please do not send me questions directly. Thanks! >>> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "adt-dev" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/adt-dev/QrTyUPslbwA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > adt-dev+unsubscr...@googlegroups.com. > 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 adt-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.