eclipse建立android項目沒法正常預覽佈局文件

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版本太低。解決方法以下。 android

 

工具/原料

  • eclipse
  • ADT插件

方法/步驟

  1. 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。開始安裝。 eclipse

  2. 2

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

     
  3. 3

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

相關文章
相關標籤/搜索