Android Packaging Problem错误解决方法

来源:互联网 发布:sql server创建试图 编辑:程序博客网 时间:2024/05/20 04:11

Android项目上出现红叉,而代码和路径无误,爆出错误信息如下:(在problem视图中)

Description ResourcePathLocationType

Error generating final archive: Debug Certificate expired on 12-4-25 上午8:35aaUnknownAndroid Packaging Problem

解决办法:

Project->Clean

原因:

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的key到期,也会出现上述问题,解决方法是:C:\Users\Freshen\.android(不同OS路径应该不同)这个目录下有个文件debug.keystore删掉,然后关闭工程,再打开应该就可以。