java - Visual Studio 2012 + Ant: diamond operator is not supported in -source 1.5 -


there many similar questions regards setting language level java when performing android build. of these answers show how set language level in eclipse or netbeans or android studio. using nsight tegra-android in visual studio 2012 building using ant , don't see anywhere in project->properties can change language level.

i have codeworks android 1r4 installed latest , paths have set following packages:

ndk r10e
jdk 1.7.0_71
ant 1.8.2

which specified under tegra->options in visual studio. ant getting -source 1.5 from?

i fixed using advice suggested in this answer. went project->properties->configuration properties->ant build->command line , added -djava.source=7 -djava.target=7 under additional options.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -