解析 Android L 的数据失败.不支持的 major.minor 版本 51.0

2022-01-21 00:00:00 windows-8 android java eclipse eclipse-adt

安装 ADT Plugin for Eclipse 后,我尝试制作一个新的 Hello world Android 应用.

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

但是当我尝试打开一个新的 Android 应用程序时遇到了以下错误.我正在使用 JDK 7.0 和 JRE 7.0.我最初使用 JDK 6.0,但遇到了同样的错误,因此我将其卸载并安装了 JDK 7.0 并分别更改了路径设置.

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.

错误明显是:

为 Android L(预览版)加载数据时遇到问题.解析 Android L 的数据失败.不支持的 major.minor 版本51.0.

我的合规级别也仅更改为 JDK 1.7.而且我还将 JRE 合规性更改为 1.7.

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

推荐答案

我在我的 Mac OSX 上遇到了同样的问题,对我来说,通过下载和安装 JDK 1.8 解决了这个问题 来自 Java SE 开发工具包 8 次下载一个>.您只需要安装(或更新到)JDK 1.8 并重新启动 Eclipse.而已!之后应该工作.

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.

相关文章