I am trying to use the diamond operator, but I am getting the following message:
diamond operator is not supported in -source 1.5 (use -source 7 or higher to enable diamond operator)
Is it fixable in netbeans with android?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.
Also see Java 7 language features with Android, Does Android plan to support Java7?, Can the Android SDK work with JDK 1.7?.