Re: DexException with two source-based library dependencies to the same library

2014-02-01 Thread Traun Leyden
That worked! I changed the settings.gradle file and the build.gradle

Re: DexException with two source-based library dependencies to the same library

2014-02-01 Thread Alberto Alonso Ruibal
Ducrohet is right, you should have only one stubworld-corelib-java in the project 1) Move /libraries/stubworld-corelib-android/libraries/stubworld-corelib-java to /libraries 2) Delete the other /libraries/stubworld-corelib-sqlite4java/libraries/stubworld-corelib-java 3) Change your /settings.g

Re: DexException with two source-based library dependencies to the same library

2014-01-31 Thread Jake Wharton
On Fri, Jan 31, 2014 at 3:49 PM, Traun Leyden wrote: > It feels like to make that work I'd need a way to make the > stubworld-corelib-android > project sometimes have a hard dependency on stubworld-corelib-java, and > sometimes not (when it's embedded in a parent project that already declares > t

Re: DexException with two source-based library dependencies to the same library

2014-01-31 Thread Traun Leyden
See inline responses below. Do you really have 2 copies of the stubworld-corelib-java libraries in > those two folders? If that's the case, as far as Gradle is concerned there > are 2 different projects and so it cannot de-dup them. > Yes, it's currently set up like that. > You should have

Re: DexException with two source-based library dependencies to the same library

2014-01-31 Thread Xavier Ducrohet
Looking at your settings.gradle, I think there's a problem: You basically do: include ':app' include ':libraries:stubworld-corelib-sqlite4java' include ':libraries:stubworld-corelib-sqlite4java:libraries:stubworld-corelib-java' include ':libraries:stubworld-corelib-android' include ':libraries:st

Re: DexException with two source-based library dependencies to the same library

2014-01-31 Thread Xavier Ducrohet
This should work. I'll investigate. On Fri, Jan 31, 2014 at 3:16 PM, Traun Leyden wrote: > > Is it possible to have two source-based library dependencies to the same > library within a single project? > > For example, I have the following multi-project structure: > > - stubworld-app-android-hybr

DexException with two source-based library dependencies to the same library

2014-01-31 Thread Traun Leyden
Is it possible to have two source-based library dependencies to the same library within a single project? For example, I have the following multi-project structure: - stubworld-app-android-hybrid - stubworld-corelib-android - stubworld-corelib-java <-- included once - stubworld-corelib