最新版ADT建立項目報錯解決辦法(三),adt建立項目
自從在Google官網下載了最新版的ADT,版本號碼version:23.0.2.1259578,整合版的(adt-bundle-windows-x86-20140702.rar)。筆者就走上了與報錯鬥爭的道路,建立項目時總無故報錯,提示內容為:
[2014-12-11 09:46:50 - test] E:\workspace\test\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.[2014-12-11 09:46:50 - test] [2014-12-11 09:46:50 - test] E:\workspace\test\res\values-v11\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.[2014-12-11 09:46:50 - test] [2014-12-11 09:46:50 - test] E:\workspace\test\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.[2014-12-11 09:46:50 - test] [2014-12-11 09:46:50 - appcompat_v7] WARNING: unable to write jarlist cache file E:\workspace\appcompat_v7\bin\jarlist.cache[2014-12-11 09:46:50 - appcompat_v7] WARNING: unable to write jarlist cache file E:\workspace\appcompat_v7\bin\jarlist.cache
最近筆者發現一個新方法,建立項目時,編譯平台只要選擇4.X(API 21)即可不報錯,或者在appcompat_v7工程右鍵Peropeties屬性選擇Android,平台選擇21也同樣結果,提示報錯資源檔可正常載入,當然你的得實現更新了你的SDK,更新失敗的朋友可以移步:《SDK更新失敗:Fetching URL: https://dl-ssl.google.com/android/repository/...failed解決方案》。
如果這個方法不行,請戳:《最新版ADT建立項目報錯解決辦法(一)》;《最新版ADT建立項目報錯解決辦法(二)》試試。希望對各位路過的朋友有所協助!
轉載請註明出處和連結:http://blog.csdn.net/xiong_it/article/details/42292065,謝謝!