Hi! I understand this is about the diamond operator, i.e. "Set<Strins> strings = new HashSet<>()"? This syntax was introduced in Java 7. We choose the default language level according to the compile SDK version, so if you use compileSdkVersion 21 or higher, you should be using Java 7 language. See this page <http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Using-sourceCompatibility-1.7> for details and how to force the language level.
Michal On Monday, August 17, 2015 at 4:51:58 PM UTC+1, Денис Зямаев wrote: > > Hello > > Minimum API level is 8, but IDE keeps telling about "<> syntax is not > supported in Java 1.6 and earlier" > > Please, add project minimum api level check, before IDE will send such > warning, it realy distracts. > -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
