score:2264
Delete your debug certificate under ~/.android/debug.keystore
on Linux and Mac OS X; the directory is something like %USERPROFILE%/.android
on Windows.
The Eclipse plugin should then generate a new certificate when you next try to build a debug package. You may need to clean and then build to generate the certificate.
score:0
Delete the debug.keystore located at C:\Users\%Username%\.android
folder. Then run the app. It will generate the new one.
score:2
To fix this problem, simply delete the debug.keystore file.
The default storage location for AVDs is
In ~/.android/ on OS X and Linux.
In C:\Documents and Settings\.android\ on Windows XP
In C:\Users\.android\ on Windows Vista and Windows 7.
Also see this link, which can be helpful.
http://developer.android.com/tools/publishing/app-signing.html
score:9
After you install the Android SDK in Eclipse
, it 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.
Now, the problem with this debug certificate is that it is only valid for a year, or 365 days. If your Eclipse IDE uses an expired debug certificate, you will not be able to create and/or deploy an Android app
.
To fix this problem all you need to do is delete the debug.keystore file.
Go to Preferences
Android
Build
Default debug keystore
There you should see the folder where the file is located. Simply delete that file and you are good to go.
For more info. you can visit
http://developer.android.com/tools/publishing/app-signing.html
score:15
In Windows debug.keystore
file is localtes at C:\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 error Error 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 project Project->Clean
.. select your project and press ok. Then you will need to build it manually. 3rd click on your project and select Build project
.(Note - You will only see this option if you have diabled Build Automatically feature in your Projects Menu)
score:16
For windows xp go to C:\Documents and Settings\%userprofile%\.android
and delete debug.keystore file, restart the eclipse and now your project get build without error.
Example path:
C:\Documents and Settings\raja.ap\.android\
score:16
First close the eclipse then
Open CMD by Window Key + R or via Run as Admin
Follows the following step
del "%USERPROFILE%\.android\debug.keystore"
keytool -genkey -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android -keyalg RSA -validity 30000
after this restart eclipse.
score:35
H-m-m-m. Interesting how so many people have had slightly different experiences with this. I remember the days when this was considered a sign that the software was not ready for release, and the team would actually fix it BEFORE users started seeing these problems:(
My own experience was just a little different. I had already tried Project>Clean, but still got the same build failure. Then I deleted the debug.keystore (under .android) just as the first answer said. Still got the same problem. Then I did a clean again, and wonder of wonders, it worked!
Now don't get me wrong, I am glad that I got it working thanks to the hints in this thread. But clearly clean isn't working right, and how did it find an expired key after I deleted the keystore??? Clearly something is wrong with Eclipse or the ADT -- not so sure which.
score:35
On Ubuntu, this worked:
I went to home/username/.android
and I renamed keystore.debug
to keystoreold.debug
. I then closed Eclipse, started Eclipse, and SDK created new certificate keystore.debug
in that folder.
You then have to uninstall/reinstall apps you installed via USB Debugging or an unsigned APK ("unsigned" APK = signed with debug certificate).
score:36
I had this problem couple of weeks ago. I first tried the troubleshooting on the Android developer site, but without luck. After that I reinstalled the Android SDK, which solved my problem.
score:38
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.
score:41
On a Mac, open the Terminal (current user's directory should open), cd ".android" ("ls" to validate debug.keystore is there). Finally "rm debug.keystore" to remove the file.
score:43
If a certificate expires in the middle of project debugging, you must do a manual uninstall:
Please execute
adb uninstall <package_name>
in a shell.
score:59
In Windows 7 it is at the path
C:\Users\[username]\.android
- goto this path and remove
debug.keystore
- clean and build your project.
score:71
- WINDOWS
Delete: debug.keystore
located in
C:\Documents and Settings\\[user]\.android
, Clean and build your project.
- Windows 7
go to
C:\Users\[username]\.android
and delete debug.keystore file.
Clean and build your project.
- MAC
Delete your keystore located in ~/.android/debug.keystore
Clean and build your project.
In all the options if you can´t get the new debug.keystore just restart eclipse.
score:83
On Vista, this worked:
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.
You are good to go.
I was pretty worried when I say that error, but I fixed it from reading here and playing around for 10 minutes.
score:264
It's a pain to have to delete all your development .apk files, because the new certificate doesn't match so you can't upgrade them in all your AVDs. You have to get another development MAP-API key as well. There's another solution.
You can create your own debug certificate in debug.keystore
with whatever expiration you want. Do this in the .android
folder under your HOME
directory:
keytool -genkey -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -validity 14000
keytool.exe
can be found in the JDK bin folder (e.g. C:\Program Files\Java\jdk1.6.0_31\bin\
on Windows).
ADT sets the first and last name on the certificate as "Android Debug", the organizational unit as "Android" and the two-letter country code as "US". You can leave the organization, city, and state values as "Unknown". This example uses a validity of 14000 days. You can use whatever value you like.
score:343
Upon installation, 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.
Source: stackoverflow.com
Related Query
- "Debug certificate expired" error in Eclipse Android plugins
- Android SDK in Eclipse gives error about expired certificate
- Sample Android project not working because of: Debug Certificate expired
- Eclipse android project always lauching in debug
- Android Development Tool 23.0.0 and Android L Update error in eclipse
- How to copy error in Android studio like in Eclipse
- Using Proguard for Android in Eclipse got Error
- Error "AdbCommandRejectedException: device not found" in Eclipse using Android emulator
- Error importing Maven Android Android project to Eclipse with ADT 20
- Android Eclipse Error executing aapt: return code 139
- Android Eclipse failing to debug
- How to view SQL database in Eclipse Debug mode for android
- Installing Android Plugin Error with Eclipse Juno 4.2.0
- Error opening Debug in Preferences in Eclipse
- Eclipse Start Weblogic in debug Mode error : “Failed to connect to remote VM”
- Debug eclipse plugin project -- PermGen space, out of memory error
- Error while opening the Eclipse Android Layout Editor
- Error with parsing Android sdk content and initializing java tooling in eclipse
- cannot access memory at address 0X1 after setting up gdb and eclipse to debug shared library from Android Application
- Getting "No Repository Found" error in Eclipse (Ganymede) while trying to install google plugins (GWT)
- Eclipse launch error when trying to run an Android app
- Reconnect to debug process on Android using Eclipse with ADT
- Eclipse Android SDK - error in building workspace
- eclipse error with plugins after update
- Eclipse and Android error 'parseSdkContent failed'
- Eclipse Mac OS X Debug Error: "FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)"
- "No Target Selected" error on Android tablet emulator in Eclipse
- How do I fix Eclipse CDT Error "Function 'isdigit' could not be resolved" with Android NDK?
- Unable to open DDMS in Android Studio. Mysterious Eclipse error pops up
- Make eclipse debug my android PROJECT
More Query from same tag
- eclipse build.gradle has a red slash through it, what does that mean?
- JButton update label
- Don't want to manually copy android JNI(.so) and Jar libraries to App project each time
- Deploying a web project inside of a Liferay Portlet
- Export .jar with .txt as resource won't work
- Missing red underlines on undefined methods in Eclipse PDT
- What is use of camel case in Eclipse Resource, Type Search
- Bluetooth Sending and Receiving Text Data
- How to run the source code for com.android.browser?
- Tasks in Eclipse not Going Away
- Where and how to add CSS in a Dynamic Web Project in Eclipse?
- Google Map View on Non Touch-Screen Phones
- Using a class inside an Interface file from another package
- Eclipse JUnit: Not passing or failing my tests?
- Error: Could not find or load main class simon.Game
- Is there a way to make Eclipse (with pydev) insert an empty docstring at the start of every class or def statement?
- jUnit - is it possible to run tests NOT concurrently?
- Issue Creating simple WebView Android
- Putting resources into my eclipse project
- How to run 2 .java classes in order? (Selenium with Eclipse)
- How to do android connect to MySQL database with php page code?
- Simple card game, letting user chose amount of decks in the game
- java.lang.ClassFormatError: when trying to mock HttpServletRequest using Mockito
- How to create table from user input?
- How to attach source of com.sun.script.javascript for debugging RhinoScriptEngine in Eclipse
- Sample Android Launcher is in phone resolution and I need to edit it for a tablet screen
- Cant compile/install plugin on Windows
- Cordova 3.6 assets update for Android
- Why is my Java program running 4 times faster via Eclipse than via shell?
- Eclipse Unable To Run ScrapBook VM