Android開發學習---template requires a minimum SDK version of at least 7,build target API version of 14

adt 22.6.3的bug

當adt更新到22.6.3,其編輯器中最低支持api7,即android 2.1,這裏多是google故意這麼作的,也多是其bug.其target sdk 和compile sdk最低都爲14,即anroid 4.0,這裏建議都設爲最高的api 19,即android 4.4;不然會一直報錯,相似錯誤以下:linux

This template requires a minimum SDK version of at least 7, and the current min version is X.....
This template requires a build target API version of at least 14, and the current version is Y.....

翻譯:要求minimum SDK爲api 7,build target最低爲api 14android

 原本想繼續用下去的,但實在感受不習慣仍是把它換回來,結果這一換,就花了2個多小時,真是夠蛋疼的,就上面的2句英文提示遠遠不知道從哪下手,好像從adt2014年之後的版本都會出現這樣的錯誤提示,網上搜索了N久,沒有答案,結果把以前的2013年的版本換回來,它又好了,真是夠奇葩的!!以前的版本是adt-bundle-linux-x86_64-20131030的版本,最新的版本好像都有問題!!這裏我試了22.6.3,22.6.2都不行.api

這裏仍是adt的問題,總結一句話,22.6以上的版本可能都會有各類"問題",建議換回以前的版本,我是換回了22.3的,而後avd,sdk manager都用的adt-bundle-linux-x86_64-20131030中默認帶的.eclipse

 

建立成功!!!編輯器

 

能夠將這裏面的sdk拷到其它platforms,這個是能夠複用的.ui

拷進來以後,立馬增長了.google

 

若是發現eclipse沒有android sdk manager和android virtual devices manager,請參考下圖操做.spa

Window > Custom Perspective--->Command Groups Availability > Android SDK and AVD Manager > check (勾選)
翻譯

這樣圖標就又有了. 3d

相關文章
相關標籤/搜索