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

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

  • Solution
  1. Open Open File -> Project Stucture select Modules (Chinese were, respectively: File -> project structure) shown in FIG.
  2. Select the corresponding items, such as pictures among app project, default Source Compatibility and Target Compatibility are empty. Then modified as follows:

1) Source Compatibility choice 1.8;

2) Target Compatibility Select 1.8.

  • Click Apply to.

Guess you like

Origin www.cnblogs.com/de1021/p/11490070.html