dimsuz
08/19/2021, 10:17 AMTimber
to 5.0.1
and get this error:
No matching variant of com.jakewharton.timber:timber:5.0.1 was found. The consumer was configured to find an API of a library compatible with Java 11, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' but:
- Variant 'releaseApiPublication' capability com.jakewharton.timber:timber:5.0.1 declares an API of a library, and its dependencies declared externally:
- Incompatible because this component declares a component, with the library elements 'aar' and the consumer needed a component, preferably in the form of class files
Indeed, it's being declared as a dependency in a kotlin-plugin module (no android), but the thing is that timber 4.x
was aar
too. I'm curious what has changed?eygraber
08/19/2021, 11:27 AMtimber/build.gradle
is missing:
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
jw
08/19/2021, 11:38 AMjw
08/19/2021, 11:39 AMdimsuz
08/19/2021, 3:22 PMjw
08/19/2021, 3:26 PMjw
08/19/2021, 3:27 PMdimsuz
08/19/2021, 3:34 PM// in buildSrc
object Deps {
const val timber = "com.jakewharton.....:4.7.1"
val coreLibs = arrayOf(rxJava, timber, etc)
}
// and then we had a "core" module which was kotlin only and it was a dependecy for all our android modules. This "core" module had:
apply plugin: "kotlin" // no com.android.library
dependencies {
api Deps.coreLibs
}
Somehow this worked for "older" timber.
For now I simply removed timber from "core" libs and import it directly in a few other "top" android-based modules