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
123
votes
25 answers

cannot find zip-align when publishing app

cannot.find.zip.align=The zipalign tool was not found in the SDK. Please update to the latest SDK and re-export your application or run zipalign manually. Aligning applications allows Android to use application resources more efficiently. This is…
JMRboosties
  • 15,500
  • 20
  • 76
  • 116
53
votes
8 answers

How to zipalign the .apk file using eclipse?

Can anyone tell me how to zipalign my .apk file with using eclipse. I have made my .apk file by giving command like, Right Click on Project Folder Click on "Android Tools" option from menu. Click on "Export Signed Application Package..." and my…
Tej Zaveri
  • 567
  • 1
  • 4
  • 8
43
votes
6 answers

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…
jtmwanakhu
  • 623
  • 1
  • 6
  • 17
38
votes
6 answers

How to zip Align APK file in android?

I am uploading my first APK file to google play but I am getting following error. You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again. Can any one tell me how to zip align my apk file…
Luckyy Nickey
  • 493
  • 2
  • 5
  • 10
16
votes
1 answer

How to check if apk is zip aligned?

Is there any possibility to check if an apk file is zip aligned?
goon
  • 589
  • 1
  • 6
  • 11
15
votes
2 answers

How to get zipalign for mac?

I already have a release unsigned version apk and I am trying to sign it on my mac. On the last step it suggests to zipalign the signed apk but mac doesn't have zipalign. I did 'brew search ' still can't find it. I searched online and can't find…
xiaomi mao
  • 481
  • 1
  • 4
  • 8
14
votes
1 answer

Android signing apk signature V2

I'm developing Android application using android studio version 2.2.2 and gradle version 2.2.2. I am trying to generate signed APK. I did the regular process for generating signed APK with Android Studio. After that, I did Zipalign process.…
nilkash
  • 7,408
  • 32
  • 99
  • 176
11
votes
2 answers

Android Studio 2.2 update: aligned APK (zipAlign) not generated using the new Gradle Plugin 2.2.0

After updating Android Studio to version 2.2 I also got an update for the Gradle Plugin (it was 2.1.3): ... classpath 'com.android.tools.build:gradle:2.2.0' ... I see the unaligned variant APK file but other variants are not generated anymore. I…
Seraphim's
  • 12,559
  • 20
  • 88
  • 129
10
votes
6 answers

Unable to open 'android-release-unsigned.apk' as zip archive (zipalign error)

I am using Ionic to build a hybrid app. I have recently tried to build the Ionic app into an Android app but I get the following error when running ionic run android with the device connected: Running command:…
AMcI
  • 101
  • 1
  • 1
  • 5
9
votes
1 answer

Why would I ever use unaligned apks?

When I run gradle task "assembleDebug" for just getting a debug release I put on my phone it also generates another apk: MyApp-debug-unaligned.apk. I think I understand what "alignment" of a zip means. That it has optimized placement of file…
Corey Ogburn
  • 24,072
  • 31
  • 113
  • 188
8
votes
7 answers

zipalign verification failed resources.arsc BAD-1

I try to upload my app to gplay but fail because my apk doesn't zipaligned. i try to zipalign but i got verification failed. really don't have idea, someone please tell me what to do. thanks in advance.
maghfirzakir
  • 808
  • 2
  • 12
  • 19
8
votes
2 answers

How to solve the failed verification with zipalign?

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…
Fixus
  • 4,631
  • 10
  • 38
  • 67
8
votes
3 answers

app-debug-unaligned.apk specified for property 'inputFile' does not exist

This morning when I opened my Android Studio project, that I have been working on for a week or so, it was suddenly unable to run the app on my phone. It can sync with gradle without any errors, but when i try to run the application i get the…
Teilmann
  • 2,146
  • 7
  • 28
  • 57
7
votes
3 answers

Unable to zipalign apk android android studio 2.2

I am publishing my app using android studio 2.2 preview 3 and generating signed apk. But when i am uploading apk to google play i am getting error You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and…
Mehul Kanzariya
  • 888
  • 3
  • 27
  • 58
7
votes
1 answer

android apk not zip aligned when uploading to Google Play

when uploading my APK to Google Play I'm getting an error I've never encountered before. The window informs me that I'm uploading an APK that is not zip aligned. However when I've uploaded previous versions of the APK these errors never occurred.…
Vivek Vinodh
  • 114
  • 1
  • 13
1
2 3 4 5 6 7