Trevor Stone

10/20/2021, 4:33 PM
I'm trying out Kotlin 1.6.0-RC to make sure my project builds. It's a multimodule project where there are some modules that support Android where most others are just jvm. The top level modules have both jvm and android library projects. I've changed nothing else except updating to kotlin 1.6.0-RC and am now getting a compile-time error
Copy code
The consumer was configured to find an API of a library compatible with Java 16, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally. However we cannot choose between the following variants of project :abc:xyz:
          - debugApiElements
          - debugRuntimeElements
          - jvmApiElements
          - jvmRuntimeElements
          - releaseApiElements
          - releaseRuntimeElements
If I disable android support from the project it builds without issue. It has been working fine on kotlin 1.5.31. Am I missing something that was a breaking change?

Trevor Stone

10/20/2021, 8:41 PM
Perfect! Glad to see I'm not alone and it looks intended to be resolved before release. I appreciate you finding and linking these


10/20/2021, 8:42 PM
Yep and they're going to release RC2 it looks like to fix this.
🦜 2