I have Android app using kotlin 1.8.10. And I built a library using Kotlin 1.9.20 and added as a dependency to the app. Building the app now fails due to reasons such as
The corresponding parameter in the supertype 'DB' is named 'db'. This may cause problems when calling this function with named arguments.
Not using the same parameter name throws warning since 1.9 and I am also using warningsAsErrors true
in the app.
Should the app really care what kotlin version is used for building the library? Is there a way to shield the app from this type of kotlin version mismatch? I tried excluding
debugImplementation("com.example.mylib:xxx") {
exclude group: 'org.jetbrains.kotlin'
}
You need to sign in to view this answers
Leave feedback about this