eclipse環境出現問題及解決
阿新 • • 發佈:2019-01-10
1.解決eclipse下新建工程出現
[2018-06-01 15:27:52 - app1] /Users/sun/longquansi/develop/work/app1/res/values/styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2018-06-01 15:27:52 - app1]
[2018-06-01 15:27:52 - app1] /Users/sun/longquansi/develop/work/app1/res/values-v11/styles.xml:7 : error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.
[2018-06-01 15:27:52 - app1]
[2018-06-01 15:27:52 - app1] /Users/sun/longquansi/develop/work/app1/res/values-v14/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
[2018-06-01 15:27:52 - app1]
問題的思路
【參考資料】
2.資源找不到,或無法生成r檔案
\appcompat_v7\res\values-v21\themes_base.xml:195: error: Error: No resource found that matches the given name: attr
需要去掉所引用的依賴庫
【參考資料】
3.執行時提示
Failed to load /Users/sun/longquansi/develop/android-sdk-macosx/build-tools/27.0 .3/lib/dx.jar
Unable to build: the file dx.jar was not loaded from the SDK folder!
原因:國內現在可以訪問的ADT版本是23.0.6,Google已經不再更新ADT了,這就會導致現有的ADT版本比SDK版本低
【參考資料】
4.
Conversion to Dalvik format failed with error 1