My Android Advanced tour------> Fix your project contains error (s), please fix them

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.