AS报错:lambda expressions are not supported at this language level
程序员文章站
2022-05-03 14:14:17
AS报错:lambda expressions are not supported at this language level 解决方法 1) Source Compatibility选择1.8; 2) Target Compatibility 选择1.8. 点击应用即可。 ......
as报错:lambda expressions are not supported at this language level
- 解决方法
- 打开打开 file --> project stucture 选择modules(汉化版对应为:文件-->项目结构)如图所示
- 选择对应的项目,比如图片当中的app项目,在默认情况下source compatibility和target compatibility都为空。然后按如下步骤修改:
1) source compatibility选择1.8;
2) target compatibility 选择1.8.
- 点击应用即可。