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.