1. Error generating final archive: Debug Certificate expired on
在Eclipse菜單Window -> Preferences -> Android-> Build,找到那個Default debug keystore顯示的路徑,就是debug.keystore這個文件(expired)過期瞭,它的路徑就是文章《Android環境搭建及相關命令/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的專欄