简体   繁体   English

在JDK1.8上解析android-21的数据失败

[英]Parsing Data for android-21 failed on JDK1.8

Been facing this issue on the out of the box standard android 21 application see attached 开箱即用的标准android 21应用程序正面临此问题,请参见附件 Android L的问题

I am on 10.9.5 Mac OS XI am currently on JDK 1.8 see 我使用的是10.9.5 Mac OS XI,目前使用的是JDK 1.8,请参见

/usr/libexec/java_home
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

In eclipse it shows the following: 在Eclipse中,它显示以下内容: 在此处输入图片说明

I have tried switching the JDK versions and also installing/uninstalling eclipse, SDK and SDK tools. 我尝试过切换JDK版本,还尝试安装/卸载eclipse,SDK和SDK工具。

Everything works fine in Android studio but not eclipse. 一切在Android Studio中都可以正常运行,但不能使其日食。 unfortunately I have to get it to work on Eclipse. 不幸的是,我必须让它在Eclipse上运行。

Would appreciate any pointers you may have on the issue! 希望您对此问题有任何指点!

You will need to install JDK version 1.7. 您将需要安装JDK 1.7版。 Android doesn't support JDK v1.8 yet. Android尚不支持JDK v1.8。 You can get the latest JDK v1.7 from here . 您可以从此处获得最新的JDK v1.7。

Also, when you update your Android SDK, you must also update your Android Development Tools (ADT) for Eclipse at the same time. 另外,在更新Android SDK时,还必须同时更新Eclipse的Android开发工具(ADT)。 If you don't, you'll get all sorts of errors. 如果不这样做,您会得到各种各样的错误。

UPDATE: As of April 27 2015, Mac® OS X® version 10.9.5 and JDK version 1.8 are not yet supported by Android SDK. 更新:自2015年4月27日起,Android SDK尚不支持Mac®OSX®版本10.9.5和JDK版本1.8。 See here for more info. 有关更多信息,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM