Debug signature Package starts crashing on Android7.0

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.