本文介绍了为 android-21 解析数据失败 Mac os Eclipse 中不支持的 major.minor 版本 51.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Mac os x Yosemite 版本 10.10.1 和 Eclipse Luna 4.4

我将 Android SDK 集成到 Eclipse 中并显示以下错误

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

我在网上搜索,我知道这个问题是基于 java JDK 版本问题.

在我的 Mac 中,我还安装了 JDK 1.6 和 1.7 以及 1.8.

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

我知道 JDK 1.6 将不支持 android 5.所以在 Eclipse 中,我将 java 编译器设置为 JDK 1.7,但在设置后如果我重新启动 Eclipse,它再次设置为 JDK 1.6.

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 .

我的问题是哪个 JDK 将支持 Mac 中的 Android SDK.以及如何从我的 mac 机器上完全卸载 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.

我的简单需求是我想在 mac 机器上运行 Android.

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

推荐答案

答案是

Eclipse 应该是 64 位版本,并且要使用 android,java JDK 应该是 1.7

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

这篇关于为 android-21 解析数据失败 Mac os Eclipse 中不支持的 major.minor 版本 51.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-20 18:36