Today I stumbled upon this, and it seems like the act of signing the APK more than once that causes this.
When I create a standard 'ant debug' that automatically signs with the debug repository, then adds the files to the APK and resigns with the debug repository, all the steps and checks give me the expected results, but after installing the factory on the new machine - reset I get this message.
When I create the standard 'ant release', skipping the password request by pressing Ctrl-C, then add the files to the APK and cancel it using my personal key store, everything will work as expected.
You can use standard methods to create your APK files, but before you resign, you need to delete the META-INF directory inside the APK file to print it. On Linux / Mac, you can use the zip -d yourapp.apk "META-INF *" command.
One more thing: some people have reported problems performing unsign / sign operations on aligned APK files, so if you have this option, you should probably work with unaligned ones, and then zipalign as a last step.
n8n8baby Jan 26 '12 at 4:17 2012-01-26 04:17
source share