I'm trying to add new compilation for android like...
# multiplatform
j
I'm trying to add new compilation for android like this:
Copy code
android {
        // android block filled with defaultConfig, buildTypes and sourceSets settings
}

targets {
        fromPreset(presets.android, 'android')
}

targets['android'].compilations.create('sm_name')
But I keep getting an error:
Cause: lateinit property androidVariant has not been initialized
Any ideas on what might be causing it?