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
1
vote
1 answer

Fixing /bin/executable on OS X

I believe that "brew update" has destroyed my /bin/zipalign - since after that it does not run anymore. The box is at a remote location (10 hours time zone difference, in a server box so I cannot get physical access to push cmd+r). I can sudo but…
user5503583
1
vote
1 answer

Gradle task to execute android zipalign

I would like to build a gradle Exec task that would run android's zipalign on my signed apk file, and then validates the the alignment.
Tidhar Klein Orbach
  • 2,896
  • 2
  • 30
  • 47
1
vote
2 answers

Publishing Ionic app - Zipalign not working

I am trying to get my Ionic app published. However, when trying to zipalign the apk with the following command /Users/bertcarremans/Library/Android/sdk/build-tools/23.0.3/zipalign zipalign -v 4 android-release-unsigned.apk chartly.apk I get the…
Bert Carremans
  • 1,623
  • 4
  • 23
  • 47
1
vote
0 answers

Android ZipAlign does not run on generate signed apk

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 '' …
James Wyman
  • 78
  • 1
  • 8
1
vote
1 answer

How to get only filename + extension of for variable

I want to run the same command on several files in a directory on Windows 8: for /r %1 %%G in (*.apk) do zipalign -f -v 4 %%G %2 The problem is that %%G is expanded to full path name, but I only need the filename itself. How can I do it? (zipalign…
RanSh
  • 189
  • 2
  • 14
1
vote
0 answers

Have trouble with app-debug.apk when app-debug-unaligned.apk is not

I am developing an NFC-integrated Android Application using Android Studio. I have 2 activities: one is about NFC Tag Reader and other is NFC Tag Writer. Everything works fine (Reader/Writer) when I the run app in my phone. After that, I went to…
Harry T.
  • 3,478
  • 2
  • 21
  • 41
1
vote
1 answer

Error with Zipaligned Application

The application works well before zipaligned it. After signing , the app can't install on my phone or tablets. I uploaded it to playstore . It doesn't show error but supported devices shows 0. Is there any problem ? Here is manifest.xml.
Lin Lin
  • 259
  • 2
  • 14
1
vote
3 answers

I got zip aligned error

I have an apk finished, when I tried to upload it, I get an error of zipalign, I tried to fix it but I didn't know how! The line is zipalign [-f] [-v] infile.apk outfile.apk Let's say I have mine.apk and I have zipalign.exe in my…
Sahar
  • 11
  • 2
1
vote
1 answer

Why zipaligning after the signing-process?

I recently asked myself why in android we have to first sign and then zipalign the apk. I searched for some background information, how those processes are technically working in detail. I'm still a little bit unhappy, cause those description do not…
Luke
  • 595
  • 1
  • 5
  • 19
1
vote
1 answer

Windows 7 Ionic Framework: zipalign 4 -v myapp-release-unsigned.apk myapp.apk won't work

When i run command above, nothing happens. It doesn't create "myapp.apk". I found nothing online to guide me. Does someone know what is going on?
Victor Ramos
  • 175
  • 3
  • 11
1
vote
1 answer

How can I get gradle to rename an intermediate file?

In my build.gradle file, I have the following: applicationVariants.all { variant -> def oldFile; if (variant.zipAlign) { oldFile = variant.outputFile; } else { oldFile = variant.packageApplication.outputFile; …
jwir3
  • 6,019
  • 5
  • 47
  • 92
0
votes
0 answers

why signed and zipped app not installed on Android 11?

I disassembled the app using apktool and further reassembled it. After I signed it with signapk, but the app did not install on my Android 11 phone, although it did install on my Android 9 emulator. I decided to look at the logs in logcat and saw…
reCAPTCHA
  • 1
  • 1
0
votes
0 answers

Publishing Android App from Visual Studio

I do the following steps: Click on Build (from VS) Click on Archive (from the VS Dropdown) VS Archives the app as an APK (it's one file) Click on Distribute The Google Play Option is greyed out so I choose Ad Hoc Add the Signing Identity Open the…
Ron
  • 2,435
  • 3
  • 25
  • 34
0
votes
0 answers

Zipalign error in Android with Xamarin Forms

I'm getting the following error wnen I try to run my app in debug mode with VSMac. I am using Xamarin Forms. I think I am on the latest vsmac and xamarin forms. My android sdk appears to be upto date. Any ideas on this issue? I'm thinking that…
Wallace B. McClure
  • 1,165
  • 1
  • 15
  • 31
0
votes
2 answers

cordova build --> both debug and release builds are working. But when I do `zipalign` it fails to install on my device

I have created an application using angular and processed it using Cordova. Now, when I use cordova build android or cordova build --release android I get the desired result i.e. the app is running on my device, even after signing it (with…