1、SDK下載很慢。
配置SDK代理,速度像飛一樣。建議先把20-24下完,不然后面遇到很多問題。
2、support-v7的問題
例如res\values\styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
下載相關(guān)的工具包,其實(shí)一開始SDK沒有額,很多博客說有,害我找了半天。
右鍵你的項(xiàng)目,在下方有個Android Tools,點(diǎn)擊Add Support Lib。。。,然后按提示下載。
其余的就是像別的博客說得導(dǎo)入v7工程還有jar包
3、v21相關(guān)問題
例如
appcompat\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
要在v7項(xiàng)目里面改,在v7項(xiàng)目下的project.properties的target版本改得高一點(diǎn)
4、找不到圖標(biāo)
例如error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/ic_launcher').
因?yàn)樽詣由傻膍ainfest文件自帶的圖標(biāo)是在drawable下的,但是仔細(xì)觀察那個文件夾下沒有圖片資源,而是在mipmap下的
把圖標(biāo)路徑改了即可。
5、應(yīng)該在R里面生成的東西沒有了
例如activity_main cannot be resolved or is not a field
刪掉import android.R;
6、無法預(yù)覽布局
例如:This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in
ADT版本低,SDK版本高,把SDK版本調(diào)低點(diǎn)即可
以上所述是小編給大家介紹的Eclipse最新版使用過程中遇到的問題總結(jié),希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對服務(wù)器之家網(wǎng)站的支持!
原文鏈接:http://www.cnblogs.com/wzben/p/5922454.html