Skip to content Skip to sidebar Skip to footer

Gradle: How To Exclude Javax.realtime Package From Jscience Jar Dependency (multiple Dex Define)

I'm using Gradle in my Android application an I would like to use the JScience library dependency. I have added the library this way: dependencies { compile fileTree(dir: 'libs

Solution 1:

In case anybody needed, the problem was in Javolution dependency from JScience library. They both do hava a javax.runtime package. Excluding the Javolution has fixed the issue for me.

compile ('org.jscience:jscience:4.3.1') {
    exclude group: 'org.javolution', module: 'javolution'
}

Post a Comment for "Gradle: How To Exclude Javax.realtime Package From Jscience Jar Dependency (multiple Dex Define)"