eclipse創建android項目,無法正常預覽布局文件,出現This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in...


eclipse創建android項目時,預覽layout.xml文件時提示: This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in,導致無法正常預覽布局文件。問題根源:SDK版本過高,ADT版本過低。解決方法如下。

eclipse創建android項目,無法正常預覽布局文件
 

工具/原料

  • eclipse
  • ADT插件

方法/步驟

  1.  

    找到eclipse文件夾,打開eclipse軟件,創建android應用項目,點擊help選擇install new software。In the Work with field,鍵入: https://dl-ssl.google.com/android/eclipse/,選擇Developer Tools / Android Development Tools.點擊next。開始安裝。(當時我是使用的此方法解決的)

     

  2.  

    若安裝不成功,第二種解決方法。打開layout文件中的.xml文件,找到選擇android版本按鈕,改變android版本。

    eclipse創建android項目,無法正常預覽布局文件
  3. 3

    第三種解決方法是打開android項目中的project.properties,直接修改版本:target=android-18


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM