[英]Android - “Parsing Data for android-21 failed”
Had the following error in Eclipse after installing Android 5.0 (SDK 21) 安装Android 5.0后,Eclipse中出现以下错误(SDK 21)
"Loading data for Android 5.0" has encountered a problem.
“为Android 5.0加载数据”遇到了问题。
Parsing Data for android-21 failed
解析android-21的数据失败
unsupported major.minor version 51.0不支持的major.minor版本51.0
Try installing JDK 1.8 and reload Eclipse. 尝试安装JDK 1.8并重新加载Eclipse。
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Initially I was facing the same issue. 最初我遇到了同样的问题。 I upgraded to JDK1.7.
我升级到JDK1.7。 Still issue persist.
仍然存在问题。 This is due to the fact that some time eclipse takees the default sdk as 1.6.
这是因为有些时候eclipse将默认sdk视为1.6。 To resolve this:
要解决此问题:
This should resolve the issue. 这应该解决问题。
I tried all above mention step, but not able to solve the problem. 我尝试了以上所有提到的步骤,但无法解决问题。 After some research, I got Solution of my problem.
经过一番研究,我得到了解决问题的方法。
check eclipse.ini to see -vm, (like "C:/Program Files/Java/jre7/bin/javaw.exe"). 检查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. 我也有你说的问题,我发现eclipse是从java6开始的。 after i modify to use java7, there are no such fail dialog.
在我修改为使用java7后,没有这样的失败对话框。
Installing JDK 1.8 and reload Eclipse worked for me 安装JDK 1.8并重新加载Eclipse对我有用
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.