I encountered an annoying error when developing an android small project today. The error shows the following characteristics:
1. All codes are correct.
2. There is no error in R resource generation, but an error will be reported once the resource is run.
The system reports the following error through error log:
Description Resource Path Location Type
Error generating final archive: Debug Certificate expired on 12-3-19 am 8: 59 bdwmUnknownAndroid Packaging Problem
I was puzzled. At first, I thought the SDK path was corrupted or the R resource file was generated incorrectly. After searching for information, I found the solution to this problem:
In the C: \ Documents ents and Settings \ Administrator \. android directory, delete debug. keystore and ddms. cfg. After deletion, reflesh again. So I will summarize the solution to this error for your reference.
After searching for information, someone explained this error as follows:
Android requires that all programs have signatures; otherwise, the program will not be installed. By default, the debug keystore is valid for one year. If you finish the android program from a year ago, the debug keystore may expire when you import the app one year later, as a result, you cannot generate an apk file.
From Peking University-Google Android lab