1. 程式人生 > >解決layout預覽問題

解決layout預覽問題

預覽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版本低;

解決辦法有好幾種,如下:

1.

  1. Click Help > Install New Software.
  2. In the Work with field, enter: https://dl-ssl.google.com/android/eclipse/
  3. Select Developer Tools / Android Development Tools
    .
  4. Click Next and complete the wizard. 

2.

Change android version while rendering layout.



3,

Change the Target version to new updates you have. Otherwise, change what SDK version you have in the Android manifest file.

android:minSdkVersion="8"
android:targetSdkVersion="18"