Debug Certificate expired..Unknown Android Packaging Problem 解決辦法
在執行有一陣子沒弄的android專案時,發現出現了一個怪Error
Error generating final archive: Debug Certificate expired on 12-07-01 上午11:27 Test Unknown Android Packaging Problem
真是奇怪,怎麼高訴我測試的憑證過期了呢? 重新Build 只要執行時就還是一樣會出錯
去查了一下,有看到Google官方有解決辦法:
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
所以到了C:\Documents and Settings\Administrator\.android資料夾下把debug.keystore檔除後,然後重新build一下獲取新的debug.keystore。這樣新建專案執行時就正常了。
為啥會發生了…狀況不明,看來是太久沒寫android,要你常寫才可以啦~XD
近期留言