934
汽車大全
如何解決:Android中 Error generating final archive: Debug Certificate expired on 10/09/18 16:30 的錯誤
原文:https://www.cnblogs.com/yyangblog/archive/2011/01/07/1929657.html
問題概述:
在導入一個app後提示如下錯誤:
“Error generating final archive: Debug Certificate expired on 10/09/18 16:30”
原因分析:
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)
然後重新導入即可。
最後更新:2017-04-02 06:51:40