在定义集合时,使用了1.7的泛型推断,如下:
List<Music> musics = new ArrayList<>();
eclipse提示Change priject complicance and JRE to 1.7
点击后,项目出错
Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead
修复方法:
在项目名称处右键,Android Tools -> Fix Project Properties 即可
或者右键Properties -> Jave Compiler ->Compiler compliance level 为1.6