Parsing Data for android-21 failed Unsupported major.minor version 51.0 in mac os Eclipse

这一生的挚爱 提交于 2019-12-05 00:28:51

问题


i am using Mac os x Yosemite version 10.10.1 And Eclipse Luna 4.4

i integrated Android SDK into Eclipse and it showing the Following Error

i searched in net and i came to know that this problem is based on java JDK version problem.

in My mac i installed JDK 1.6 and 1.7 and 1.8 as well.

i know JDK 1.6 will not support for android 5. so in Eclipse i set the java compiler to JDK 1.7 but after setting if i restart the Eclipse its again setting to JDK 1.6 .

My question is which JDK will support the Android SDK in Mac. And How to completely uninstall the JDK 1.6 from my mac machine.

i am facing this problem for last two days but i can not get the solution yet. can anyone kindly help to overcome this problem.

My simple need is i wants to run the Android in mac machine .


回答1:


The problem is solved . after searching lots of this i got the solution.

The answer is

Eclipse should be 64 bit version, and to use android the java JDK should be 1.7




回答2:


Bro, take a look at this post:

http://www.jayway.com/2014/01/15/how-to-switch-jdk-version-on-mac-os-x-maverick/




回答3:


Update to Eclipse Luna 64 bit with at least JDK 1.7 and I nearly guarantee everything will work.



来源:https://stackoverflow.com/questions/28643058/parsing-data-for-android-21-failed-unsupported-major-minor-version-51-0-in-mac-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!