I am using Eclipse Android plugins to build a project, but I am getting this error in the console window:
[2010-02-03 10:31:14 - androidVNC]Error generating final archive:
Debug certificate expired on 1/30/10 2:35 PM!
How do I fix it?
I am using Eclipse Android plugins to build a project, but I am getting this error in the console window:
[2010-02-03 10:31:14 - androidVNC]Error generating final archive:
Debug certificate expired on 1/30/10 2:35 PM!
How do I fix it?
To fix this problem, simply delete the debug.keystore file.
The default storage location for AVDs is
Also see this link, which can be helpful.
http://developer.android.com/tools/publishing/app-signing.html
The Android SDK generates a "debug" signing certificate for you in a keystore called
debug.keystore
.The Eclipse plug-in uses this certificate to sign each application build that is generated.Unfortunately a debug certificate is only valid for 365 days. To generate a new one, you must delete the existing
debug.keystore
file. Its location is platform dependent - you can find it in Preferences -> Android -> Build -> *Default debug keystore.If you are using Windows, follow the steps below.
DOS: del c:\user\dad.android\debug.keystore
Eclipse: In Project, Clean the project. Close Eclipse. Re-open Eclipse.
Eclipse: Start the Emulator. Remove the Application from the emulator.
If you are using Linux or Mac, follow the steps below.
Manually delete
debug.keystore
from the.android
folder.You can find the
.android
folder like this:home/username/.android
Note: the default
.android
file will be hidden.So click on the places menu. Under select home folder. Under click on view, under click show hidden files and then the
.android
folder will be visible.Delete
debug.keystore
from the.android folder
.Then clean your project. Now Android will generate a new
.android folder
file.In Windows
debug.keystore
file is localtes atC:\Users\%Username%\.android
folder. This file is created when you install your android SDK and is valid only for a year. After this perod you will start getting this errorError getting final archive: Debug certificate expired on xx/xx/xxxx
.To remove this error simply delete the file and run the program again. In my Eclipse I have enabled
Project->Build Automatically
so it directly worked but in case you have disabled it you will need to clean the projectProject->Clean
.. select your project and press ok. Then you will need to build it manually. 3rd click on your project and selectBuild project
.(Note - You will only see this option if you have diabled Build Automatically feature in your Projects Menu)In Windows 7 it is at the path
debug.keystore
First close the eclipse then
Open CMD by Window Key + R or via Run as Admin
Follows the following step
after this restart eclipse.