Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parsing data for Android L failed.Unsupported major.minor version 51.0

After installing ADT Plugin for Eclipse, I tried to make a new Hello world Android app.

But I met with the following error when I tried to open a new Android Application. I'm working with JDK 7.0 and JRE 7.0. I initially worked with JDK 6.0, but met with the same error, hence I uninstalled it and installed JDK 7.0 and changed the path settings respectively.

The error clearly is:

Loading data for Android L(Preview) has encountered a problem. Parsing data for Android L failed.Unsupported major.minor version 51.0.

My compliance levels are also changed to JDK 1.7 only. And I also changed my JRE compliance to 1.7.

like image 312
sasu Avatar asked Jul 22 '14 11:07

sasu


2 Answers

I was facing the same problem on my Mac OSX and for me the problem was resolved by downloading and installing JDK 1.8 from Java SE Development Kit 8 Downloads. You just need to install(or update to) JDK 1.8 and restart the eclipse. That's it! Should work afterwards.

like image 126
K M Rakibul Islam Avatar answered Sep 23 '22 16:09

K M Rakibul Islam


Please check for the following.

  1. Ensure that you have restarted your system after specifying the path name.
  2. You can look for the following icon on your eclipse's layout screen. !(enter image description here) The "20" specifies the android version to use when rendering layouts. Change it and see.
  3. Last but not least review your ADT configurations. Hope this helps.
like image 39
Srijith Avatar answered Sep 21 '22 16:09

Srijith