解决 “Error generating final archive: Debug Certificate expired on ... ... ”错误
上网找的官方给的解决办法:
To fix this problem, simply delete the debug.keystore file. The default storage location for AVDs is in ~/.android/avd on OS X and Linux, in C:\Documents and Settings\\.android\ on Windows XP, and in C:\Users\\.android\ on Windows Vista.
The next time you build, the build tools will regenerate a new keystore and debug key
原因分析:
android要求所有的程序必须有签名,否则就不会安装该程序。在我们开发过程中,adt使用debug keystore,在 preference->android->buid中设置。debug的keystore默认有效期为一年,如果你是从一年前开始完android程序,那么在一年后导入这个app的时候很可能出现debug keystore过期,导致你无法生成 apk文件。
此时你只要删除debug keystore就行,系统又会为你生成有效期为一年的私钥。
解决方法:
进入C:\Documents and Settings\Administrator\.android 删除路径下的debug.keystore及 ddms.cfg。
(不同环境下的目录可能略有不同,可在eclipse中查找此路径:Window->Preferences->Android->Build下 Default debug keystore)
然后重新导入即可。
更多相关文章
- .Net 转战 Android 4.4 日常笔记(2)--HelloWorld入门程序
- android studio 运行程序提示"adb not responding. if you'd lik
- android 内存管理 及 程序的设置
- Android 自动识别TextView或者EditView里的url并在自己的应用程
- android程序发布时的常用工具
- android手把手教你开发launcher(三)——启动安装的应用程序
- 怎样查看程序的历史运行时间?
- Android应用程序永久获取root权限方法
- Android 新版个税计算小demo程序