Try this
androidComponents { beforeVariants(selector().withName("debug")) { variantBuilder -> variantBuilder.minSdk = 21}}
For more information about beforeVariants, can check this link
Try this
androidComponents { beforeVariants(selector().withName("debug")) { variantBuilder -> variantBuilder.minSdk = 21}}
For more information about beforeVariants, can check this link