Android & quot; Error generating final archive: Debug Cer

Source: Internet
Author: User

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
 

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.