java - Android requires compliance level 5.0 or 6.0 -
possible duplicate:
android requires compiler compliance level 5.0 or 6.0. found '1.7' instead. please use android tools > fix project properties
i have added line of code android app:
arraylist<hashmap<string, string="">> mylist = new arraylist<hashmap<string, string="">>(); it has worked in other peoples apps on mine comes red cross next when hover on says:
multiple markers @ line - syntax error on token ">>", invalid assignmentoperator - syntax error on token ",", typeargument2 expected after token - syntax error on tokens, delete these tokens i have error displayed on console:
android requires compiler compliance level 5.0 or 6.0. found '1.7' instead. please use android tools > fix project properties. i have tried:
project -> android tools -> fix project properties,
project -> clean,
project -> properties -> java compiler -> compiler compliance level (currently set @ 1.5 have tried 1.6 , 1.7 , no fix)
please :(
first ,you should read java collections , generics
arraylist<hashmap<string, string>> mylist = new arraylist<hashmap<string,string>>(); and set compliance level 1.6, because 1.7 not compatable yet. java 1.5 gives @override anotation error. because @override introduced in 1.6.
project -> properties -> java compiler -> compiler compliance level->set @ 1.6
Comments
Post a Comment