ANDROID: Installation errors

This is a part 2 to the previous post on installation.

During installation I received the following failure:

Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]

You can turn on Logcat to debug the installation failure:

adb logcat

My Logcat yielded the following errors:

E/PackageParser( 74): Package com.website.mclass has no certificates at entry assets/; ignoring!

To solve this issue, you need to sign the apk file before installing. Here's how:

jarsigner -verbose -keystore
(directory)\debug.keystore (directory)\(filename).apk androiddebugkey

The default passphrase is android

To verify the certification, you can again use jarsigner:

jarsigner -verify -verbose -certs (directory)\(filename).apk

The last command line printout should now read:

jar verified.

No comments: