Eclipse 中的 Android SDK 给出有关过期证书的错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6645924/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android SDK in Eclipse gives error about expired certificate
提问by M.A.Murali
When building Android project in Eclipse, Android SDK gives error like this:
在 Eclipse 中构建 Android 项目时,Android SDK 给出如下错误:
error:
错误:
Description Resource Path Location Type
1) Error generating final archive: Debug Certificate expired on 7/9/11 6:31 PM MapByLocation Unknown Android Packaging Problem
2)Error generating final archive: Debug Certificate expired on 7/9/11 6:31 PM PageCurlAnimation Unknown Android Packaging Problem
I do not know how to solve. please help me.
不知道怎么解决。请帮我。
回答by CeKup
To fix this problem, simply delete the debug.keystore file.
要解决此问题,只需删除 debug.keystore file.
The default storage location for AVDs is
AVD 的默认存储位置是
- In
~/.android/
on OS X and Linux. - In
C:\Documents and Settings\<user>\.android\
on Windows XP - In
C:\Users\<user>\.android\
on Windows Vista and Windows 7.
- 在
~/.android/
OS X 和 Linux 上。 - 在
C:\Documents and Settings\<user>\.android\
Windows XP 中 - 在
C:\Users\<user>\.android\
Windows Vista 和 Windows 7 上。
回答by Aakash
Use the keytool utility to create a new debug keystore. The keystore that you are using has expired and that is the reason why you see the project shows up in eclipse with errors.
使用 keytool 实用程序创建新的调试密钥库。您使用的密钥库已过期,这就是您看到项目在 Eclipse 中出现错误的原因。
check this out http://www.androiddevelopment.org/tag/keytool/
看看这个http://www.androiddevelopment.org/tag/keytool/
Also before doing that delete the existing debug keystore from the location in Windows or Linux based on the OS you are using.
此外,在此之前,请根据您使用的操作系统从 Windows 或 Linux 中的位置删除现有的调试密钥库。
回答by Shibi
Try this solution:
试试这个解决方案:
go to folder
C:\Users\(your pc name)\.android\
delete
debug.keystore
file and then clean and run
转到文件夹
C:\Users\(your pc name)\.android\
删除
debug.keystore
文件,然后清理并运行
回答by raja
For Windows XP go to
C:\Documents and Settings\%userprofile%\.android
and delete debug.keystore
, restart Eclipse and now your project will build without the error.
对于 Windows XP,转到
C:\Documents and Settings\%userprofile%\.android
并删除debug.keystore
,重新启动 Eclipse,现在您的项目将构建而不会出现错误。
Example path:
C:\Documents and Settings\raja.ap\.android\
For other Windows versions, find your user folder and then delete the file.
示例路径:
C:\Documents and Settings\raja.ap\.android\
对于其他 Windows 版本,找到您的用户文件夹,然后删除该文件。