1

Does anyone have experience with zipalign not running even when explicitly set when building for the store? I am running Android Studio 2.0 beta 2 from canary channel.

signingConfigs {
    release {
        keyAlias 'key'
        keyPassword ''
        storeFile file('location.keystore')
        storePassword ''
    }
}

buildTypes {
    debug {
        debuggable true
        zipAlignEnabled true
    }

    release {
        debuggable false
        zipAlignEnabled true
        signingConfig signingConfigs.release
    }
}

If I build with generate signed apk it won't do zipalign even though it says in my build logs that it does. If I push app to phone and build that way it will sign and do zipalign. The other method of course can be fixed by using zipalign -c -v 4 unaligned.apk aligned.apk so was just wondering if there was something I was missing with generated signed apk.

Daniel DiPaolo
  • 55,313
  • 14
  • 116
  • 115
James Wyman
  • 78
  • 1
  • 8
  • sorry the zipalign -c -v is for verification, most will use ./zipalign -v 4 /PATH/build/outputs/apk/app-release-unaligned.apk /PATH/build/outputs/apk/app-release.apk – James Wyman Feb 15 '16 at 20:03
  • I tried to signed apk file using terminal command but getting error when install it, any suggestion [here](https://stackoverflow.com/q/46462718/2624806). – CoDe Sep 28 '17 at 07:13

0 Answers0