2012-01-23 39 views
2

Environment:
的Android庫項目清理和重建有問題

IDE: Eclipse IDE for Java Developers 3.7.1 
Plugin: ADT 14.0.0.v2011101719 
Host: Fedora 13 
JDK: 1.6.0_21 


Eclipse中似乎有問題,清理和重建項目,當至少一個項目是一個Android庫項目,另一個是Android項目依賴於庫項目。

我建立這個應用​​。我得到了一些四個錯誤說法如下:

The container 'Library Projects' references non existing library 
'/bin/com_actionbarsherlock.jar' 

The project cannot be built until build path errors are resolved 

The project was not built since its build path is incomplete. 
Cannot find the class file for java.lang.Object. Fix the build 
path then try building this project 

The type java.lang.Object cannot be resolved. It is indirectly 
referenced from required .class files 

誰能知道這個問題?如果能以任何方式解決?

+0

你檢查了你的JDK版本嗎? – Lucifer

+0

你檢查了沒有問題的JDK版本 – Rizvan

+1

好的,你的項目是否包含項目庫路徑中的Android庫? – Lucifer

回答

1

好的,請嘗試這些步驟,

轉到項目菜單,選擇屬性。 將出現一個對話框,在該對話框中,從左側選擇Android選項,現在在右側選擇您正在開發的Android版本。

現在再次清潔&建立項目。

+0

雅我可以做到這一點,但問題仍然是相同的,我可以看到,當我設置目標爲Android,下一次目標還沒有設置,當我再次打開它 – Rizvan

+0

是否像你已經打開一個Android項目從網上下載? – Lucifer

+0

不完全,但是我做了那件事 – Rizvan