Had the following error in Eclipse after installing Android 5.0 (SDK 21)
"Loading data for Android 5.0" has encountered a problem.
Parsing Data for android-21 failed
unsupported major.minor version 51.0
Try installing JDK 1.8 and reload Eclipse.
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Initially I was facing the same issue. I upgraded to JDK1.7. Still issue persist. This is due to the fact that some time eclipse takees the default sdk as 1.6. To resolve this:
- Change the environmental path to point 1.7/1.8
- Open Eclipse and goto windows tab-> preference
- Goto Java->complier and set Compiler compliance level to 1.7 and press apply.
- Then Goto Installed JRE Section. check if the installed jdk is listed and selected in the list. If not listed give the manual path using search. then select the jdk version and remove other versions in the list.
- in installed JRE go to execution environment and select the intended java se version and check it in compatible section
- Presss ok and restart Eclipse.
This should resolve the issue.
I tried all above mention step, but not able to solve the problem. After some research, I got Solution of my problem.
check eclipse.ini to see -vm, (like "C:/Program Files/Java/jre7/bin/javaw.exe").
i also have the problem you said and i found eclipse is started with java6. after i modify to use java7, there are no such fail dialog.
- So need to update SDK to 1.8 or 1.7.
- set compiler to 1.7 or 1.8..
- then check eclipse.ini
Installing JDK 1.8 and reload Eclipse worked for me
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
来源:https://stackoverflow.com/questions/26474298/android-parsing-data-for-android-21-failed