I got this error when trying to export a signed apk in Eclipse
Error while running zipalign: Unable to open as zip archive
I have run the Help->Check for Updates to make sure the latest update is installed and SDK tools also up to date.
I got this error when trying to export a signed apk in Eclipse
Error while running zipalign: Unable to open as zip archive
I have run the Help->Check for Updates to make sure the latest update is installed and SDK tools also up to date.
If the destination file already exists and it is opened by another process, then you will see this error.
Solving method: Rename the destination file, or close the application that already opens the file.
zipalign
tool can't access to the source file, so you should verify path, file name, extension, permissions ...If your pre-align APK is larger than 2GB, it will also cause this issue. Tested with build-tools 23.0.1 on Windows 10 machine.
I got this error because I had no write access to the target directory. Changing the permission accordingly resolved the problem.
I had the same problem with my zipalign command. Output path was correct but the folders did not exist which was provided in the output path and so i created the folders manually and then it all worked fine.
I was getting the same error message. Drove me crazy until i found that my destination path was invalid.
Zipalign will give you that error even if the apk is perfectly valid, but