Does zipalign execute automatically when .apk is generated as signed from Android Studio?

I am wondering if the method of generating a signed .apk for release is also zipaligns apk. In the directions of the android page ( http://developer.android.com/tools/publishing/app-signing.html#studio ) it is unclear whether zipalign is another step.

Thank you!

+4
source share
1 answer

You can define build types in the build.gradle file.

buildTypes {

     debug {
        storeFile file("debug.keystore")
     }

     release {
        zipAlignEnabled true
     }
}

The debug configuration is used when you debug apk and release configuration when creating apk.

zipAlignEnabled true , apk zipaligned. , , apk zipaligned. - false.

, : http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Types

+5

All Articles