Android Studio - How to ZipAlign apk
问题 I have created a signed apk using Android Studio and I'm now going to zipalign it, I have read this: http://developer.android.com/tools/help/zipalign.html but I'm still not sure where to add the lines of code, is it in the Gradle file and where in the file do I add the lines? 回答1: Inside you main module's build.gradle file you can have multiple build types along with your debug one. You can specify zipAlign characteristic inside any of your buildType by using buildTypes { release {