I have a problem with zipalign. I can't go through the proces. Each run ends with Verification FAILED
. For some files i see something like this
2574474 res/drawable-xxxhdpi-v4/abc_btn_radio_to_on_mtrl_000.png (BAD - 2)
for the reset
7044070 res/layout/notification_template_media.xml (OK - compressed)
The apk is generated but when I upload it via console I receive info that it is not compressed properly. What can I do ?
zipalign is a zip archive alignment tool. It ensures that all uncompressed files in the archive are aligned relative to the start of the file. This allows those files to be accessed directly via mmap(2) , removing the need to copy this data in RAM and reducing your app's memory usage.
zipalign is an archive alignment tool that provides important optimization to Android application (APK) files. The purpose is to ensure that all uncompressed data starts with a particular alignment relative to the start of the file.
The zipalign file is located in build-tools in the path where Android SDK is installed. If you want to enter your own password without saving it, the -storepass and -keypass related options need to be removed. Windows users can drag the app file to be signed to the LIAPP_sign_window.
Seems like gradle has pushed a new version without the zipalign task. I had the same issue after changing this:
classpath 'com.android.tools.build:gradle:2.+'
to
classpath 'com.android.tools.build:gradle:2.1.2'
The problem was solved for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With