1. 程式人生 > >Eclipse搭建安卓開發環境中的問題記錄

Eclipse搭建安卓開發環境中的問題記錄

注意:

1.Genymotion路徑設定要精確到Genymotion

 

2.Eclipse 提示 “This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in”

 

分析:

本人所用的ADT版本為:ADT-23.0.6,

問題原因:SDK 版本過高,ADT 版本低;

解決辦法:

把版本切換到 22 及以下就可以了,22以後 Eclipse 就不再支援(即Android 6.0(API 23)也沒辦法顯示了),要開發 23 以後的趕快轉戰 Android Studio 吧。

(也可看下https://blog.csdn.net/g19920917/article/details/20289247的解決辦法)

 

奇怪的是,本人在用Android 5.1.1 (API 22),發現也是不行。

 

google支援eclipse時,adt最高版本為adt24.0.2.

 

3.問題:在SDK Manager中安裝Android 5.0.1 (API 21) ,而新建安卓專案時顯示Android 4.X(L Preview)

 

原來,Android L 和 Android 5.0 沒有區別。Lollipop(棒棒糖),谷歌公司 2014 年 10 月 16 日推出的 Android 5.0 系統的代號。所以 Android 5.0 版本又俗稱 L 版本。

所以在SDK Manager中看到的Android 5.0.1 (API 21) 其實就是Android 4.X(L Preview),即Lollipop的預先發行版。

 

4.引入support-v4,v7包解決問題

直接拉入extras中的android的support路徑即可。

 

 

5.Android Studio不用ADT,只是Eclipse才有ADT