android 错误提示 Your project contains errors,please fix them before running your application

PHP 林涛 9737℃ 0评论

想学习一下android,于是重新安装了ecelip和android sdk,但是第一次运行就出现错误:Your project contains errors,please fix them before running your application

于是搜索了一下原因。

其中找到一条:

Error generating final archive: Debug Certificateexpired on 11-3-4 下午1:40

这句话的意思就是无法生成最终的文档apk。Debug验证已经过期了。

好像第一次安装android开发环境是一年前了,并且系统好几年没有安装了,所以应该是前面的问题。于是找到前面的配置路径:zai 开发过程中,adt使用debug keystore,在 preference->android->buid中设置,于是删除:debug.keystore 。

debug的keystore默认有效期为一年,如果你是从一年前开始开发 android程序,那么很可能出现debug keystore过期,导致你无法生成 apk文件。只要删除debug keystore就行,系统又会为你生成有效期为一年的私钥。

重新run an,编译ok!

如需转载请注明: 转载自26点的博客

本文链接地址: android 错误提示 Your project contains errors,please fix them before running your application

转载请注明:26点的博客 » android 错误提示 Your project contains errors,please fix them before running your application

喜欢 (0)
发表我的评论
取消评论

表情
(3)个小伙伴在吐槽
  1. 找了20多个网站,就你说对了,我也是大约一年前配了ANDROID的环境,现在准备在用,的确是过期了。非常谢谢你啊!!!
    bill2012-03-16 22:13 回复
  2. 强大!
    Laurie2011-12-29 03:35 回复