APK Signature Scheme v2
Android 7.0 introduces a new application signature scheme APK Signature Scheme v2, which provides faster application installation time and more protection against unauthorized APK file changes. By default, Android Studio 2.2 and Android Plugin for Gradle 2.2 Use the APK Signature Scheme v2 and traditional signature scheme to sign your app.
While we recommend that you use the APK Signature Scheme v2 for your app, this new scheme is not mandatory. If your app doesn't develop correctly when you use the APK Signature Scheme v2, you can deactivate the new scenario. Disabling the process will cause Android Studio 2.2 and Android Plugin for Gradle 2.2 to sign your app using only traditional signature schemes. To sign only with legacy scenarios, open the module-level build.gradle
file and add the rows v2SigningEnabled false
to your version signature configuration:
Android{
...
Defaultconfig{ ... }
Signingconfigs{
release {
StoreFile file ( "Myreleasekey.keystore" )
Storepassword "password" Span class= "PLN" >
Keyalias "Myreleasekey"
Keypassword "password"
Span style= "Background-color: #ff0000" > v2signingenabled false
}
}
}
Debug Signature Package starts crashing on Android7.0