I'm targetting jvm, android and several native tar...
# multiplatform
z
I'm targetting jvm, android and several native targets like ios and linux
Copy code
sourceSets {
  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?
Copy code
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.