Android开发:编译运行提示“Your project contains errors...”


在编译运行时,报出‘Your project contains errors,please fix them before running your application.’的提示框

在项目图标会有个小红叉

但项目代码中却没有任何错误.
以前这种情况一般处理方式有:方法1.用project->clean;方法2.删除项目,重新载入项目.
这次用了都不行.
查看问题输出栏Problems标签页,有以下错误


原来我的电脑上默认的调试证书过期了,调试证书期限默认是1年,
找到原因很简单,重新生成证书就好了.
找到证书所在位置C:\Documents and Settings\Administrator\.Android\debug.keystore,
 
删除掉debug.keystore文件,adt就自动生成新的debug.keystore.

Ok解决

相关内容