MarioAriasC / funKTionale

Functional constructs for Kotlin
915 stars 71 forks source link

Android Gradle 3.0: Multiple dex files define Lorg/jetbrains/annotations/TestOnly #42

Open kar opened 6 years ago

kar commented 6 years ago

I figured that in my compilation problem with gradle 3.0 described here [1] the reason is in fact funktionale. I cannot pinpoint it any further but I suppose it's a good idea to report it here. It used to compile just fine before I updated my build environment.

[1] https://stackoverflow.com/questions/48504912/android-gradle-3-0-multiple-dex-files-define-lorg-jetbrains-annotations-testonl

MarioAriasC commented 6 years ago

The all jar is fat jar build with Maven. I didn't know that was copying JetBrains annotations.

The most comfortable option is to replace the all jar for the modules jars that you need as described in the README.md. Bonus point, fewer kilobytes to download and ship and probably better build times.

I hope that I can produce a fat jar with no JetBrains stuff, but it'll take me a few weeks as I'm quite busy with other projects