I hope you've some older version of android gradle plugin, updating to latest version may solve your issue.
There is buildscript
section inside root build.gradle
file
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2' // <- update version
}
}
Refresh all gradle projects.
According to developers guide
APK Signature Scheme v2 offers:
Faster app install times
More protection against unauthorized alterations to APK files.
It is recommended to use APK Signature Scheme v2 but is not mandatory.
Although we recommend applying APK Signature Scheme v2 to your app,
this new scheme is not mandatory. If your app doesn't build properly
when using APK Signature Scheme v2, you can disable the new scheme.