dependencies {
implementation('com.google.code.gson:gson:2.2.4!!') { // <- this can also be a 'constraint' if you do not use Gson direction but only want to force it down for 'sign-library'
because("sign-library does only work with 2.2.4")
}
implementation('com.squareup.retrofit2:converter-gson:2.6.0') // USES GSON(2.8.5) INTERNALLY
implementation(name: 'sign-library', ext: 'aar') // USES GSON(2.2.4) INTERNALLY
}
@blackkara That’s not possible. If you run Java applications with Gradle it uses a normal Java classpath with the normal class loading. Thus each class can only exist once on the classpath. That’s why Gradle conflict resolves. If you want to use different versions of the same classes in parallel, you need a specific runtime setup - which depends on what kind of Application you are building and what your runtime supports there.