Eclipse中编译Android工程时,提示错误 :Error generating final archive: Debug
certificate expired on xxxxxx(日期)
解决办法:
进入:C:\Documents and Settings\USER(用户账户)\.android
,删除:debug.keystore和ddms.cfg
English blog
Once in a while the SDK shows some hickups – usually easy to solve. As this one. Today i got this error message “Error generating final archive: Debug certificate expired on
…” while building an apk file inside Eclipse to be run in the emulator on a machine which has not been used for a while.

If you are using IntelliJ 9 with the Android plugin the error message looks like this:

Well, the idea to just update all components to the current state and
then to compile a project to check it out on this backup development
system went from a 10 min cruise to the unexpected question “Whats
wrong?”.
Looking at the error message it was clear that the build process
wanted to use a certificate which timed out. The Android SDK is using
certificates to sign all the apk files even ther files which run in the
emulator (fair enough). The cert is usually valid for just 365 days
which means that you get the same error next time shortly after
forgetting how you’d solve it last time.
The simple solution is to just delete the file “debug.keystore
” which is stored in your home directory under “~/.android
” (OSX, Linux). A Windows Vista/7 user will find the file in the “C:\Users\<user<\.android folder.

After deleting the file just “clean” your project and build int from scratch and the error should be gone.
To prevent this brain training procedure for a while a decided to
generate a key which lasts 1000 days instead of just the full year.
Startup the OSX terminal app or the Linux terminal and go to the
“.android” folder. Delete the old certificate file first. Then issue the
following command from the command line:
keytool -genkey -keypass android -keystore debug.keystore -alias
androiddebugkey -storepass android -validity 1000 -dname “CN=Android
Debug,O=Android,C=US”
Now there should be a new certificate file sitting in the folder
which lasts 1000 days – enough to really forget how you solved this
issue last tim
分享到:
相关推荐
- `x509: certificate has expired or is not yet valid` - `http: TLS handshake error from ...: remote error: tls: bad certificate` - `serverhttps://127.0.0.1:6443/cacerts is not trusted: Get ...
解决这个问题通常有以下几种方法: 1. **购买正式许可证**:最直接的解决方式是通过Adobe官方网站购买Flash Builder的正式许可证,这样可以获得持续的更新和支持。 2. **使用旧版本**:如果预算有限或者不需要最新...
[Sun Nov 27 16:46:38 2016] [error] SSL Library Error: -8181 Certificate has expired [Sun Nov 27 16:46:38 2016] [error] Unable to verify certificate 'Server-Cert'. Add "NSSEnforceValidCerts off" to nss...
在Oracle数据库管理中,"ORA-28001 the password has expired" 是一个常见的错误,它表明数据库用户的密码已经超过了预设的有效期限,导致用户无法正常登录。这个错误主要出现在Oracle 11G及更高版本中,因为这些...
Android Linux 开发 USB 错误-Device Descriptor Read/64, Error -62 解决方法总结 Android Linux 开发中,USB 设备的 descriptor 读取错误是一个常见的问题,特别是在使用 S3C6410 开发板时。这种错误通常表现为 ...
### ireasoning mib browser License Expired 解决办法 #### ireasoning mib browser简介 ireasoning mib browser是一款非常实用的MIB(Management Information Base)浏览器工具,广泛应用于网络管理和监控领域。...
Page Expired(解决方案).md
创建电子应用 在一分钟内生成一个新的Electron App! ·· 什么是create-electron-app? 是一个简单,最小的CLI应用程序,可以在一分钟内生成一个Electron应用程序! Create-Electron-App使用样板作为样板。...
在遇到TTL expired in transit错误时,关键在于识别错误的类型并采取相应的解决措施。如果错误是由于路由跳数过多导致的,增加TTL值可能会解决问题。若错误是由于路由环路导致的,则需要运营商对网络路由进行调整和...
然而,在日常使用中,我们可能会遇到各种错误,其中之一就是错误代码1862,提示“your password has expired”。这个错误通常发生在MySQL的安全策略要求定期更改密码,而用户未及时更新的情况下。 解决MySQL错误...
可能会出现证书报错,可以使用以下命令解决: ``` [root@bogon ~]# npm config set strict-ssl false [root@bogon ~]# npm install pm2 -g ``` 安装完成后,我们可以使用以下命令来验证 pm2 的版本: ``` [root@...
Invalid or expired token(解决方案).md
Atom是一款由GitHub开发的开源文本编辑器,被誉为“21世纪的可扩展编辑器”。它以其高度可定制性、跨平台支持以及丰富的插件生态系统而备受开发者喜爱。在这个绿色版本中,无需安装过程,用户可以直接运行,方便快捷...
Cannot create cert chain: certificate has expired 此错误消息表明KINIT身份验证失败,因为客户端证书,KDC证书或其上方签名链中的某个证书已过期 kprop: No route to host while connecting to server 确保754...
错误信息: ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports...解决方式: 1.修改 my.cnf 配置文件 vi /etc/my.cnf 2.重启 mysql 服务 你可以使用 ser
MyEclipse 8.5 注册--取消MyEclipse Trial Expired解决办法
**解决方法:** 1. **修改my.cnf配置文件:** 打开MySQL的配置文件,通常位于`/etc/my.cnf`。在[mysqld]部分添加一行`skip-grant-tables = 1`,这将允许你跳过权限验证,以无密码方式登录MySQL。 2. **重启MySQL...
`*10 月 29 日 18:01:56.107:%PKI-3-CERTIFICATE_INVALID_EXPIRED:证书链验证失败。证书 (SN: 7E3446C40000000CBD95) 已过期。有效期结束于 10 月 14:38:08 UTC26 2021 对等证书验证失败 001A` 这表明 WLC...
1. **Android 进程管理**:Android系统为了优化内存使用,会在必要时杀死后台应用来释放资源。特别是当设备内存紧张时,系统可能会终止那些被认为不重要的进程。默认情况下,锁屏的应用会被视为可被清理的后台进程。...
Session Expired(解决方案).md