不支持金刚石操作者 [英] diamond operator is not supported

查看:186
本文介绍了不支持金刚石操作者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用的钻石运营商,但我收到以下消息:

I am trying to use the diamond operator, but I am getting the following message:

金刚石操作者不支持-source 1.5(使用-source 7或更高,以使金刚石操作者)

diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamond operator)

它是在NetBeans可以解决与Android?

Is it fixable in netbeans with android?

推荐答案

Android的需要java源符合5.0或6.0(Java5中/ 6)。 java7目录,不支持开箱即用。 The're文章描述了如何使用一些java7目录功能黑客:<一href="http://www.informit.com/articles/article.aspx?p=1966024">http://www.informit.com/articles/article.aspx?p=1966024.

Android needs java source compliance 5.0 or 6.0 (Java5/6). Java7 is not supported out of the box. The're articles describing hacks on how to use some of java7 features: http://www.informit.com/articles/article.aspx?p=1966024.

另请参见 Java 7中语言功能与Android ,的Does Android的计划,以支持java7目录?,的可以使用JDK 1.7 Android SDK的工作?

这篇关于不支持金刚石操作者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆