eclipse 解析 android-21 的数据失败,不受支持的 Major.minor 版本 51.0

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/27436999/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 22:18:02  来源:igfitidea点击:

Parsing Data for android-21 failed unsupported major.minor version 51.0

androideclipse

提问by Neeraj Mahawar

Had the following error in Eclipse after installing Android 5.0 (SDK 21)

安装 Android 5.0 (SDK 21) 后在 Eclipse 中出现以下错误

"Loading data for Android 5.0" has encountered a problem. 

Parsing Data for android-21 failed  
unsupported major.minor version 51.0

I am still facing the same problem on mac, and now as in the few answers try Java 1.8 where I found the latest version of it. Old is not available. I already have updated Java but I don't know what's wrong with it.

我在 mac 上仍然面临同样的问题,现在就像在少数答案中一样尝试 Java 1.8,我找到了它的最新版本。旧的不可用。我已经更新了 Java,但我不知道它有什么问题。

回答by ChuongPham

You will need to install Java v7. Android doesn't support Java v8 yet. You can get the latest Java v7 from here.

您将需要安装 Java v7。Android 尚不支持 Java v8。您可以从这里获取最新的 Java v7 。

When you update your Android SDK, you mustalso update your Android Development Tools (ADT) at the same time. If you don't, you'll get all sorts of errors.

当您更新您的 Android SDK 时,您还必须同时更新您的 Android 开发工具 (ADT)。如果你不这样做,你会得到各种各样的错误。

UPDATE:As of December 15 2014, Mac? OS X? version 10.10 is not yet supported by Android SDK. See herefor more info.

更新:截至 2014 年 12 月 15 日,Mac?操作系统?Android SDK 尚不支持 10.10 版。请参阅此处了解更多信息。

回答by bowdom

did you start eclipse with java7? check eclipse.ini to see -vm, (like "C:/Program Files/Java/jre7/bin/javaw.exe").

你是用java7开始eclipse的吗?检查 eclipse.ini 以查看 -vm,(如“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.

我也有你说的问题,我发现eclipse是用java6启动的。在我修改为使用 java7 后,没有这样的失败对话框。

回答by Natan Lotério

Maybe it's the eclipse that has the wrong configuration. Check this out

可能是eclipse配置错误。看一下这个

https://stackoverflow.com/a/27046257/988521

https://stackoverflow.com/a/27046257/988521