I’m not sure if this is the right channel, but I recently upgraded a library I own from Kotlin 1.5.30 to 1.6.10, along with the kotlin-gradle plugin, and am using JVM 11 and Gradle 7.0.2. Now I have a consumer app of this library which is now failing to compile because it’s not recognizing a bunch of interface/companion object properties. The consumer app uses Kotlin 1.6.10 and the same gradle plugin and JVM. Everything was working with 1.5.30 and the only thing I changed was the Kotlin version.
Here’s an example:
In the library, I have this object:
object Scopes {
fun serial(): CoroutineScope = CoroutineScope(...)
}
In the consumer app of the library, I’m getting this new error:
Scopes.serial() -> Unresolved reference: serial
Java 8 Bytecode from consumer app:
public final class Scopes {
@NotNull
public static final Scopes INSTANCE = new Scopes();
However, I call Scopes.INSTANCE.serial() it works.
Additionally, I’m getting errors with accessor properties in interfaces not being recognized in the consumer app, even though the decompiled java bytecode says it’s there.
Is there an additional compiler configuration I’m missing?