Android開發 Eclipse 中的錯誤處理

來源:互聯網
上載者:User

1.      Error generating final archive: Debug Certificate expired on

在Eclipse菜單Window -> Preferences -> Android-> Build,找到那個Default debug keystore顯示的路徑,就是debug.keystore這個檔案(expired)到期了,它的路徑就是文章《Android環境搭建及相關命令http://www.bkjia.com/kf/201203/123793.html》裡面說的設定SD卡img檔案的上一層目錄.android。

所以不論Windows系統還是Linux系統,只要刪除這個debug.keystore就行了,Eclipse會自動產生一個新的,預設有效期間也是一年。

 

2.Android Error: Unable to open class file R.java

Solution:解決方案:

The “Build Path”for your Java environment is not setup correctly in Eclipse. To fix this,follow these steps:

1) Open the Preferences Window by clicking“Window -> Preferences”

2) Find the “Java”sectionand expand it

3) Select “Build Path”

4) Change the value of Source and outputfolder from Folders to “Project”

5) Click Apply and then “OK”

Your problem should be resolved!


摘自 ch_jinyi的專欄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.