Android項目左邊紅X,項目裡卻沒有錯誤提示。

來源:互聯網
上載者:User

不要慌張,如果clean和重啟都沒有作用,

此時要查看problems視圖,快速鍵為Alt+Shift+Q,X。

把這裡的問題描述拿去搜尋,一般就會找到答案。

如果問題描述如下:
“Error generating final archive: Debug Certificate expired on 12/04/17 16:30”
說明debug認證到期了。 
原因分析:
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)
然後重新匯入即可。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.