解析android-21的数据失败不支持major.minor版本51.0

问题描述:

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

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


$ b $我仍然面临同样的问题,在Mac上,现在在几个答案中尝试Java 1.8,在那里我找到了最新版本。旧的不可用
我已经有更新的Java,但是我不知道它有什么问题。

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.

你将需要安装Java v7。 Android还不支持Java v8。您可以从此处获取最新的Java v7

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

更新Android SDK时,您必须 还可以同时更新Android开发工具(ADT)。如果没有,您将收到各种错误。

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

更新:截至2014年12月15日,Mac®OSX® Android SDK尚不支持10.10版。有关详细信息,请参阅此处

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