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
分享到:
相关推荐
NULL 博文链接:https://irwenqiang.iteye.com/blog/1222755
我放到网盘上,欢迎下载,个人感觉比sublime好用,ftp管理方式很好用,还有包管理也很好
ireasoning mib browser是一个非常好用的mib浏览器。问题是,它的试用期只有一个月,一个月内所有功能都是开放的。...下文给出了解决办法。测试版本是7.5 (build 2708),估计其他版本原理相同也可以。
MyEclipse 8.5 注册--取消MyEclipse Trial Expired解决办法
主要为大家详细介绍了MySQL错误代码1862 your password has expired的解决方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
wso2 新增OpenSSL生成並使用CA根證書籤名Keytool生成的證書請求 相關流程心智圖展開
ORA-28001 the password has expired密码过期
完美解决MyEclipse提示过期Your 30-day trial of MyEclipse has expired.
使用安装的nvm来安装node各版本v9.6.1
今天发现电信送的一条固定IP地址出现问题,查确认属于是他们私自更改了我们的IP地址.电话通知电信大客经理...在下午接通知,已经改好
大家好,我是一名小小程序员,关于JPG转PDF special version expired please register 解决方案,本人已知此问题,特编写一个程序来解决,语言方案是E语言编写,没有免杀,可能被杀软误报。 缺点是:程序需要联系一次...
解决flash builder beta2 licensing for this product has expired(此产品的许可证已过期); 解压后存入Flex的安装文件夹plugins\com.adobe.flexide.amt_4.0.0.235740\os\win32\x86 替换源文件即可
使用方法请看压缩包中的说明文件。。。。。。。。。。。。。。。。。。。
[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...
Unable to connect to the server: x509: certificate has expired or is not yet valid 查看K8S的日志: Part of the existing bootstrap client certificate is expired: 2022-11-9 9:29:04 +0000 UT 这是说明k8s...
邮件通联关系分析数据&工具 -to学生.rar
关于JPG转PDF special version expired please register 解决方案
下面给大家介绍远程连接mysql错误代码1130的... 您可能感兴趣的文章:Windows下MySql错误代码1045的解决方法MySQL错误代码大全Mysql数据库错误代码中文详细说明MySQL错误代码1862 your password has expired的解决方法
ireasoning mib browser是一个非常好用的mib浏览器。问题是,它的试用期只有一个月,一个月内所有功能都是开放的。一个月后就不能使用了。...下文给出了解决办法。测试版本是7.5 ,估计其他版本原理相同也可以。