Android Error Generating Final Archive - Debug Certificate Expired

First Lets see what a "Debug Certificate" is in Android Programming

"This is a Certificate generated by Android SDK tool and is used to sign your app during development process."

Error Message :

Error generating final archive:

Debug certificate expired on 1/30/2020 5:40 PM!

If you have encountered this error it is because your debug certificate has expired (normally has a validity of 365 days).

Cause :

This issue is due to the validity expiry of your debug certificate debug.keystore

Solution :

You have to locate debug.keystore file on your system. Depending on what Operating System that you are working on you may find this file inside .android folder,

On Windows: Go to C:\Users\[user-name]\.android you will find the file debug.keystore Delete this file

On Linux: Go to home/[user-name]/.android you will find the file debug.keystore Delete this file

On Mac: Go to ~/.android/ you will find the file debug.keystore Delete this file

After you delete the debug.keystore file, you need to Clean the android project that you are working with (under Project > Clean), cleaning remove the cached keystore that contained expired certificate and creates a new one.

If still the issue persists, restart eclipse. ✌️

Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -