I'm running 1.2.51, is this the problem? Will an e...
# announcements
e
I'm running 1.2.51, is this the problem? Will an eap solve the problem?
g
It’s just a warning. And no, EAP will not solve this problem. You use experimental feature
e
g
Oh, you must use
-XXLanguage
flag for all your modules
Kotlin do not allow to link against experimental library classes if consumer itself is not experimental
e
how can I flag my modules like that?
I just added this at the moment
Copy code
compileKotlin {
    kotlinOptions {
        freeCompilerArgs = ['-XXLanguage:+InlineClasses']
    }
}
g
Copy code
allprojects {
   compileKotlin { … ]
}
you should apply this config to all modules, you probably do this only for one of them (probably root one)
anyway, just a guess, never tried to use experimental features of compiler Just heard about this restriction about experimental classes
e
same error
but this time I also got
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
, probably because the junit dep