Solve the Problem of DEBUG. keystore expiration in Android

Source: Internet
Author: User

Share:

When developing Android, Jee, or other Java applications, if there is a Red Cross before the eclipse project, however, is there any error message in SRC, but how can I find the root cause of the error in the project during compilation? The method is as follows:

Open the problem view of eclipse (if it is closed, you can find the problem view under window-> show view), and then you can see the root cause of the project in the view.

Let's get back to my problems.

Problem description:

The following error is prompted after an Android app is imported:

Description resource path locationtype

Error generating final archive: Debug certificate expired on 8/18/11 pmxxxxxx (this is my project name) unknownandroid Packaging Problem

 

Cause analysis:

Android requires that all programs have signatures; otherwise, the program will not be installed. During our development process, ADT uses debug keystore and sets it in preference> Android> buid in eclipse. By default, the debug keystore is valid for one year. If you started Android development from a year ago, debugging may occur in a year.
Keystore expired, causing engineering errors (such as my situation) or failure to generate APK files, etc (due to repeated installation of my eclipse and SDK/ADB, it has been a lot of time, I haven't encountered this problem all the time. I am lucky to have it today, haha ).

 

Solution: 

You only need to delete the debug keystore and ddms. cfg files. The system will generate a new private key valid for one year for you. The addresses of the debug keystore and ddms. cfg files are located:

1) Linux (Mac OS ):

In eclipse, choose Window> preferences> Android> build> default debug keystore to view the keystore address:

"/Home/user name/. Android/debug. keystore"

DeleteDebug. keystore and ddms. cfg

2) Windows:

Go to: C: \ Documents ents and Settings \User Name\. Android deletion:Debug. keystore and ddms. cfg

Go to c: \ Documents ents and Settings \ Administrator \. Android to delete:Debug. keystore and ddms. cfg


(Note: In Windows, you should check the keystore address location in the default debug keystore in eclipse WINDOW> preferences> Android> build. Otherwise, the file cannot be found)

 

Note: QQ technology exchange group: add one if you are interested in 108614806.

 

Related Article

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.