Your project contains error(s), please fix them before running your application.

錯誤出現時被弄得一頭霧水,一來以為程式寫錯了,二則以前所寫的程式全部都不能用了,心想是不是Eclipse被我超壞了看了一下 Problems發現到如下錯誤:


這個問題不是出在程式上的語法錯誤而是出在debug.keystore,原來 debug 的 keystore 預設時間為一年,當超出一年就會出現過期的告警;
其解決方法很簡單就是將debug.keystore刪除後從新執行Eclipse就可以了,該檔案放置位置可以從 windows --> Preferences --> Android --> Build 中的 Default debug keystore中找到,一般預設是放置在:
C:\Documents and Settings\Mosquito\.android\debug.keystore

參考:
http://developer.android.com/guide/publishing/app-signing.html
感謝大大提供解決方法~!
回覆刪除謝謝您 ~!