Questions tagged [zipalign]

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. Specifically, it causes all uncompressed data within the .apk, such as images or raw files, to be aligned on 4-byte boundaries.

93 questions
0
votes
0 answers

Error while generating signed apk: Unable to open as zip archive - Eclipse

I have created an android application in Eclipse, however while running the zipalign command to export it as a signed apk, the following error shows up and the apk is not generated. Please guide me on how to fix this error? Thanks.
Kyaw Zin Wai
  • 449
  • 5
  • 10
  • 26
0
votes
0 answers

Unable to zipalign the android apk manually

I used the command like: D:\>C:\Users\SCS\AppData\Local\Android\sdk\build-tools\24.0.0\zipalign -v 4 D:\AppBuilds\ProAppPlayStore_11082016\appcodeByAbhijit\platforms\android\build\outputs\apk\original.apk…
Vinod Poorma
  • 419
  • 1
  • 6
  • 15
0
votes
1 answer

My Android Studio Project's APK is not zip aligned (Upload Failure)

I keep on failing to upload the signed APK file generated from Android Studio, even though I have tried many different solutions to solve it. This is what I get when uploading: I have also seen some solutions to write zipalign commands, but I…
Maryoomi1
  • 113
  • 1
  • 3
  • 16
0
votes
1 answer

Cannot run program "aapt"

I am trying to sign and zip align the android apk using terminal but I am getting following exception. java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified at…
Sandip Armal Patil
  • 6,241
  • 21
  • 93
  • 160
0
votes
2 answers

Prevent zipalign from compressing .wav files

I'm attempting to re-sign an Android .apk. i.e. It is currently self signed and I wish to re-sign it with the official certificate. To do this I Download the build archive Rename it from name.apk to name.zip Extracting the zip Delete META-INF Zip…
Shane Gannon
  • 6,770
  • 7
  • 41
  • 64
0
votes
2 answers

Unable to parse Dynatrace Instrumented APK file

I used the Dynatrace auto-instrumentor command on my Android apk file auto-instrumentor.cmd apk prop and then signed it with my keystore. jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore…
Ahmed Faisal
  • 4,397
  • 12
  • 45
  • 74
0
votes
1 answer

Is there a way to test if an APK is correctly zipaligned

Our customer uploaded the APK himself and has reported that the APK is not aligned. Which surprised me a lot and is rather embarrassing. Before supplying a new APK I wonder if there is a way to test if an APK is correctly aligned. There is of course…
Martin
  • 11,577
  • 16
  • 80
  • 110
0
votes
1 answer

Does a debug release of an Android app have a higher chance at being killed?

The Android docs say: Finally, if the application is being signed in release mode, you must align the .apk with the zipalign tool. Aligning the final .apk decreases memory usage when the application is -running on a device. Does this mean…
EGHDK
  • 17,818
  • 45
  • 129
  • 204
0
votes
2 answers

Sign .APK to avoid Google server error, after download from Test-Fairy

I am using this testing tool, Test-Fairy. The way it works is: I upload an .apk, they make some changes and then they ask to download the .apk file back and sign myself (to support my own key and be aligned with google play services). To do this, i…
0
votes
1 answer

App Crashes from playstore

I have an app..I exported the signed apk and uploaded to play store.. When I run signed apk from my computer, it runs fine, but when I download the same from play store, it crashes... I connected the log-cat, it says no classdef found for one of my…
Prakhar
  • 710
  • 6
  • 24
0
votes
1 answer

Phantom zipalign

I'm trying to run zipalign from freshly installed android sdk on Ubuntu. Although you can clearly see zipalign in proper directory, running it yields "no such file or directory". I can open it in hex editor. I can list its contents with cat, but…
ssuukk
  • 8,200
  • 7
  • 35
  • 47
0
votes
0 answers

After zipalign, I got an eror on keytool

I have an application and I wanted to upload it to google play, I got error, so I did the zipalign to it: zipalign -v 4 a.apk b.apk After that, on cmd, I did the keytool to it, I got an error keytool error:java.io.IOException: Incorrect AVA…
Zamela
  • 1
  • 2
0
votes
1 answer

How to zipalign apk file on windows 8.1

Yes i searched google and other questions I don't see any zipalign etc in my sdk tools directory Using latest android studio on windows 8.1 64 bit I also tried build gradle but it also does nothing at output apk file apply plugin:…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
0
votes
0 answers

I got an error when I upload the APK file

I finished an application and I wanted to upload it thro google, I had this error You uploaded an APK that is not zipaligned. You will need to run a zip align tool on your APK and upload it again. I used zipalign and it told me "Verification…
Zamela
  • 1
  • 2
0
votes
0 answers

Zipalign file giving this error

can any one please help me with this issue.
user1
  • 87
  • 1
  • 3
  • 11