zt
03/30/2024, 1:55 AMsourceSets {
nativeMain {
languageSettings {
optIn("kotlinx.cinterop.ExperimentalForeignApi")
}
}
}
But when I sync my gradle project it throws this error, which doesn't make sense. Shouldn't all the native sourcesets inherit from this nativeMain group?
A problem occurred configuring project ':mpv'.
> Inconsistent settings for Kotlin source sets: 'linuxX64Main' depends on 'nativeMain'
'linuxX64Main': set of opt-in annotations in use is []
'nativeMain': set of opt-in annotations in use is [kotlinx.cinterop.ExperimentalForeignApi]
The dependent source set must use all opt-in annotations that its dependency uses.