How can I Re-sign an android apk. I referred to this answer Can I re-sign an .apk with a different certificate than what it came with?
but got stuck with Android Man
Downgrading to JDK 1.6.0_43 solved the problem.
To sign apks using JDK 1.7 one has to use these keywords "-sigalg MD5withRSA -digestalg SHA1"
Reason: As of JDK 7, the default signing algorithim has changed, requiring you to specify the signature and digest algorithims (-sigalg and -digestalg) when you sign an APK.
Command: jarsigner -verbose -sigalg MD5withRSA -digestalg SHA1 -keystore [keystorefile] [originalapk] alias_name