Monday, 1 August 2011

Eclipse, Android Development Problem - "Error: Error generating final archive: Debug Certificate expired"

A really nasty problem, could have burnt through a fair bit of time.

Luckily I found this article after looking at the "Problems" tab in Eclipse and seeing my debug certificate had expired at the exact minute that I started getting the error message:

Resolution was reached as follows:

Renaming the debug.keystore file and running a "Clean". Eclipse put a new debug.keystore in place and away I went...however on the next build I get the following trace (my App is called SimpleList):

[2011-08-01 22:32:47 - SimpleList] ------------------------------
[2011-08-01 22:32:47 - SimpleList] Android Launch!
[2011-08-01 22:32:47 - SimpleList] adb is running normally.
[2011-08-01 22:32:47 - SimpleList] Performing com.infostructure.simplelist.SimpleListActivity activity launch
[2011-08-01 22:32:47 - SimpleList] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Magic'
[2011-08-01 22:32:47 - SimpleList] Uploading SimpleList.apk onto device 'emulator-5554'
[2011-08-01 22:32:48 - SimpleList] Installing SimpleList.apk...
[2011-08-01 22:32:50 - SimpleList] Re-installation failed due to different application signatures.
[2011-08-01 22:32:50 - SimpleList] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-08-01 22:32:50 - SimpleList] Please execute 'adb uninstall com.infostructure.simplelist' in a shell.
[2011-08-01 22:32:50 - SimpleList] Launch canceled!

Bugger. Not to worry, found the directory with the adb application in it (<...>Eclipse\android-sdk-windows\platform-tools) and run the command as specified - "adb uninstall com.infostructure.simplelist" - command runs fine.

Next build works fine, and I'm back in business.

1 comment:

  1. This is one of the thoughtful and special post.Your blog is creating an effective Environment in Internet marketing field.
    Android app developers


Migrating (and Open-Sourcing) an Historical Codebase: SVN-to-Git

I have a SVN repo on my local machine that I have been shoving stuff into since before I knew how to use revision control systems properly (...