[英]installing android ADT with eclipse
我最近下載了android sdk,但是當我嘗試在eclipse中創建一個新的android項目時,它總是顯示相同的錯誤
[2016-04-15 01:22:40 - HelloWorld3] C:\Users\Admin\workspace\HelloWorld3\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-04-15 01:22:40 - HelloWorld3]
[2016-04-15 01:22:40 - HelloWorld3] C:\Users\Admin\workspace\HelloWorld3\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2016-04-15 01:22:40 - HelloWorld3]
[2016-04-15 01:22:40 - HelloWorld3] C:\Users\Admin\workspace\HelloWorld3\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2016-04-15 01:22:40 - HelloWorld3]
沒有創建該項目。 我以前使用過Eclipse Luna,重新安裝了Eclipse,現在有了Mars2。我還從SDK Manager中刪除了最新的軟件包。 這些是我發現的唯一解決方案
我注意到的另一件事是在安裝android sdk之后eclipse無法正常工作。 例如,圖標不變。 在安裝sdk之后的歡迎頁面中,它沒有給我選擇現有SDK的選項。 當我單擊File-> New時,沒有android應用程序項目,我必須選擇項目,然后單擊android,然后單擊android應用程序項目。 有人可以幫忙嗎?
坦白地說,如果您開始使用Android Studio,您會頭疼不已,因為它現在是Andoid的官方IDE,並且您幾乎可以自動接收所有最新更新。 但是,如果由於某些原因您真的必須使用Eclipse,那就應該怎么做:
該錯誤表明您缺少“ appCompat”。 我說的與@ΦXoce웃Пepeúpa差不多,但是我真的考慮去Android Studio。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.