pluginManagement { val kotlin_version: String by settings resolutionStrategy { eachPlugin { if (requested.id.id == "org.jetbrains.kotlin.multiplatform") { useModule("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") } if (requested.id.id == "com.android.application") { useModule("com.android.tools.build:gradle:${requested.version}") } } } repositories { gradlePluginPortal() google() jcenter() mavenCentral() } }