Android required the applications to be signed even in the debug mode. So it uses a keystore file called debug.keystore to provide keys for signing applications in debug mode. This key store file has a validity period by default 365 days from its creation date.And there have 2 ways to resolve this issue:
A. Navigate to the ".android" folder in your home directoryOr
“~/.android” (Linux,Mac OS) or
"C:\Documents and Settings\[User Name]\.android" in windows XP or
"C:\Users\[User Name]\.android" in windows Vista or Windows 7,
then delete debug.keystore file. Then go to eclipse clean the project, this will create a new debug.keystore file with default validity period 365 days.."
Create a new default.keystore file with custom validity period (say 1000 days).Good luck,
- Navigate to the ".android" folder.
- Delete the old default.keystore file.
- We will use JDK Keytool.exe to generate the new key file. It is found in
- Run the following command in the "cmd" (or terminate):
keytool -genkey -keypass android -keystore debug.keystore -alias androiddebugkey -storepass android -validity 1000 -dname “CN=Android Debug,O=Android,C=US”
- This will generate a new default.keystore file with validity period 1000 days.
- Copy the generated file to the ".android" folder, go to eclipse and clean projects and it should work.