12

I was updated my android SDK tools to 24.1.2 and I updated to Android API 22 (that is, 5.1) and I restarted my eclipse and created new android project with target API of 22 then when I was opened my XML file it was not showing any preview. It was showing an error:

This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in.

Ryan M
  • 18,333
  • 31
  • 67
  • 74
RD Division Medequip
  • 1,605
  • 4
  • 18
  • 32

2 Answers2

28

Using Gradle

https://stackoverflow.com/a/20167880/2265926

In XML

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="18" />

In IDE

Just try changing android version while rendering layout.

In Eclipse :

enter image description here

In Android Studio :

enter image description here

Umar Sid
  • 1,317
  • 1
  • 17
  • 24
15

Go to Help >> Install new software and add install https://dl-ssl.google.com/android/eclipse/ then select Developer Tools and click on next to begin install

or

Change the API version in XML.

Bay
  • 467
  • 7
  • 22
Subhalaxmi
  • 5,687
  • 3
  • 26
  • 42
  • How do you "change the API version" in XML? Do you mean the AndroidManifest? –  Dec 11 '17 at 11:48