pluginManagement {
resolutionStrategy {
eachPlugin {
if (requested.id.id == "com.android.library") {
useModule("com.android.tools.build:gradle:${requested.version}")
}
if (requested.id.id == "com.android.application") {
repositories {
gradlePluginPortal()
google()
mavenCentral()
jcenter()
include(":app")