AS报错:lambda expressions are not supported at this language level

  • 解决方法
  1. 打开打开 File --> Project Stucture 选择Modules(汉化版对应为:文件-->项目结构)如图所示AS报错:lambda expressions are not supported at this language level-LMLPHP
  2. 选择对应的项目,比如图片当中的app项目,在默认情况下Source Compatibility和Target Compatibility都为空。然后按如下步骤修改:

1)      Source Compatibility选择1.8;

2)      Target Compatibility 选择1.8.

  • 点击应用即可。
05-02 01:21