Post Reply

Unable to sign APK files - invalid entry compressed size??

14th March 2009, 12:02 AM   |  #1  
OP Member
Flag Las Vegas
Thanks Meter: 0
 
91 posts
Join Date:Joined: Feb 2009
More
Hello all,

I need some help signing my APK files. I have done everything correctly up to the point of signing the file.

I am running the command:

jarsigner -verbose -keystore -my-release-key.keystore oriental.apk alias_name

Jar signer then asks for my password I set up. i put in the password and get:
jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 1110 but got 1119 bytes)


I have scoured the web for hours and tried a few things. All lowercase name ofr the apk file as suggested somewhere. i am at a loss.

Anyone know how to fix this?
12th April 2009, 01:37 AM   |  #2  
Junior Member
Thanks Meter: 0
 
2 posts
Join Date:Joined: Apr 2009
Need to do this on an unsigned apk file...
I ran into this same problem for an android apk using Eclipse. I don't know if your running into the exact same problem. But, I'm guessing the principles are similar.

To fix this I had to do the jarsigner on an unsigned apk file. If you are using Eclipse, the apk is signed with a temporary key (which I think the android market won't allow).

If your using something else, you can see if your apk is already signed using syntax like:

$ jarsigner -verify -verbose my_application.apk

To get an unsigned apk in Eclipse, right click on application name in the Package Explorer window and choose Android Tools, then choose "Export Unsigned Application Package...". Save the package to a new location.

Once you have an unsigned apk. Run the jarsigner command you were using on the unsigned apk file.

This is also possibly explained better (at least for an android user using Eclipse) at:

http://developer.android.com/guide/p...p-signing.html

Like I said earlier if your not using Eclipse to generate an apk, possibly the tool your using has similar options to create an unsigned apk file.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes