各路牛人:
     eclipse中导入工程,报这个错'<>'operator is not allowed for source level below 1.7,把jdk改成1.7后,提示Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.,执行fix无效。求高位高手给指点一二。

解决方案 »

  1.   

    报错:'<>' operator is not allowed for source level below 1.7
    这是eclipse的编译环境与项目的要求不对应造成的,这个错误一般是导入别的项目才出现的。解决:右键项目--属性--勾选Enable project  specific  settings--Compiler compliance level--选择1.7--OK
      

  2.   

    举个例子 HashMap<String, String> query_args = new HashMap<>(); 
    改成 HashMap<String, String> query_args = new HashMap<String, String>(); 就OK了
      

  3.   

    最好的方法将jdk修改为工要求的jdk版本,更新项目即可。
      

  4.   

    sdk1.7以上才支持加括号中不写具体类型,所以要兼容低版本,最好尖括号中加上类型,如<String>
      

  5.   

    问题是我的jdk版本是1.8啊是1.7以上啊,还是报这个错