I am using Gradle plugin 0.9 and Android Studio 0.5.4.

I have an Android Library Project with one dependency .jar inside /libs 
folder. When I run assembleRelease task with Proguard activated the 
resulting AAR has the following structure:

   - MyLibrary
      - AndroidManifest.xml
      - assets/
      - libs/
         - myJar.jar
      - classes.jar
      - R.txt
      - res/
   
My .jar dependency is declared in build.gradle as follows:

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
}

The problem is that myJar.jar classes get merged in classes.jar by Proguard 
(when I run without Proguard it doesn't happen). When I run my application 
project with AAR as a dependency I get "Multiple dex files define" errors 
regarding the myJar.jar classes that are also in classes.jar. If Proguard 
merges libs/ folder .jar classes into classes.jar than libs/  folder should 
be empty in resulting AAR. Right now I am manually removing .jar from AAR 
/libs folder. Any ideas how to solve this issue?

-- 
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.

Reply via email to