when using Eclipse to write Android code, the code is not error-free. thento run the test in the AVD, the error box pops up with the following message: "Your project contains error (s), please fix them before running Your application."
then see the prompt in the program prompt as: "Error generating final archive:debug Certificate expire D on 14-3-21 pm 12:54"
Cause Analysis:
Android requires that all programs must have a signature, otherwise the program will not be installed. In the course of our development, ADT Makeswith Debug KeyStore, set in Preference->android->buid. KeyStore default validity period for debugfor a year if you are starting from a year ago to finish the Android program,then it's possible to import this app after a yearthe debug keystore expired, causing you to not be able to generate the APK file. at this point you just delete the debug KeyStore, and the system will generate a private key that is valid for one year.
Workaround:
Enter C:\Documents and settings\administrator\.android to delete Debug.keystore and ddms.cfg under the path.
(Directories in different environments can be slightly different, and you can find this path in eclipse: window->preferences->android->build under Default Debug KeyStore)
==================================================================================================
Ouyangpeng welcome reprint, sharing with people is the source of progress!
Reprint please keep the original address : Http://blog.csdn.net/ouyang_peng
==================================================================================================
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
My Android Advanced tour------> Fix your project contains error (s), please fix them