![](/img/trans.png)
[英]Android Studio: "cannot resolve symbol R" after importing Project from Github and rebuilding/cleaning/syncing with gradle files
[英]Android library project cleaning and rebuilding has problems
Environment:
IDE: Eclipse IDE for Java Developers 3.7.1
Plugin: ADT 14.0.0.v2011101719
Host: Fedora 13
JDK: 1.6.0_21
當至少一個項目是Android Library項目,而另一個項目是依賴該庫項目的Android項目時,Eclipse似乎在清理和重建項目時遇到問題。
我構建了這個應用程序CSipSimple 。我得到一些四個錯誤,如下所示:
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
有人知道這個問題嗎? 是否可以通過任何方式解決?
好的,嘗試這些步驟,
轉到項目菜單,選擇屬性。 將出現一個對話框,在該對話框的左側,選擇Android Option,現在在右側,選擇要開發的Android版本。
現在再次清理並構建項目。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.