歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux編程 >> Linux編程 >> Android開發:編譯運行提示“Your project contains errors...”

Android開發:編譯運行提示“Your project contains errors...”

日期:2017/3/1 10:08:49   编辑:Linux編程

在編譯運行時,報出‘Your project contains errors,please fix them before running your application.’的提示框

在項目圖標會有個小紅叉

但項目代碼中卻沒有任何錯誤.
以前這種情況一般處理方式有:方法1.用project->clean;方法2.刪除項目,重新載入項目.
這次用了都不行.
查看問題輸出欄Problems標簽頁,有以下錯誤


原來我的電腦上默認的調試證書過期了,調試證書期限默認是1年,
找到原因很簡單,重新生成證書就好了.
找到證書所在位置C:\Documents and Settings\Administrator\.Android\debug.keystore,

刪除掉debug.keystore文件,adt就自動生成新的debug.keystore.

Ok解決

Copyright © Linux教程網 All Rights Reserved