Skip to main content
Stack Overflow
  1. About
  2. For Teams

Timeline for Java "lambda expressions not supported at this language level"

Current License: CC BY-SA 4.0

22 events
when toggle format what by license comment
Aug 5, 2020 at 15:06 comment added Mike On Android Studio 3.6.3, my screen showed 1.8 supported but I was getting the compiler error. I read @averasko comment and switched my setting to 1.7, applied, then switched back to 1.8 and applied, and the compile error went away. Thanks!
Aug 1, 2019 at 6:55 review Suggested edits
Aug 1, 2019 at 8:17
S May 28, 2019 at 22:24 history suggested Asad Ali Choudhry CC BY-SA 4.0
Added Screenshot, Improved explanation, Improved Formatting
May 28, 2019 at 11:42 review Suggested edits
S May 28, 2019 at 22:24
S Apr 20, 2019 at 18:17 history suggested Peter CC BY-SA 4.0
added options for newer versions
Apr 20, 2019 at 14:35 review Suggested edits
S Apr 20, 2019 at 18:17
Mar 19, 2019 at 10:14 comment added GeoffL In Android Studio, it's File--Project Structure, select App under Module, Properties Tab, then set Source Compability to 1.8. Oh already mentioned above by Ivan
Sep 6, 2018 at 7:20 comment added Roshna Omer @Ivan yes thank you for the updated version, I've been searching for so long, this is the same thing but not UI
May 18, 2018 at 20:25 comment added Ivan This answer is outdated. On Android 3.1.2 go to File -> Project Structure -> Module you want to support lambdas and set Source Compatibility and Target Compatibility to 1.8
Jun 21, 2016 at 22:51 comment added Ced I was facing the same issue but it was already on 8.0. The comment from @user1516873 helped me solve the issue
May 13, 2016 at 12:48 comment added Jemshit does not exist on AS1.5.1 on Mac
Jan 10, 2016 at 16:32 comment added mjlee In maven, you have to explicitly set to 1.8 language level. stackoverflow.com/questions/16723533/…
Nov 3, 2015 at 14:29 comment added averasko After upgrading to IntelliJ 15, I had to change the Project Language Level up to 9 and then back to 8 for that to take effect.
Sep 25, 2015 at 2:30 comment added BaDo @Shubh: In Gradle, add these lines, your code will work: android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } }
Sep 2, 2015 at 6:49 comment added CoDe I'm facing same issue for Android Studio and neither found same settings in IDE you mention above. Any suggestion !
May 14, 2015 at 16:18 comment added user1516873 Note from proposed edit: You can also configure language level for every module, File Menu → Project Structure → Modules, but by default it will the same as Project language level.
May 14, 2015 at 15:39 review Suggested edits
May 14, 2015 at 16:39
S Apr 28, 2015 at 15:36 history edited Zach Lysobey CC BY-SA 3.0
Removed typo, clarified path to take, improved formatting
S Apr 28, 2015 at 15:36 history suggested Trisha CC BY-SA 3.0
Removed typo, clarified path to take
Apr 28, 2015 at 15:10 review Suggested edits
S Apr 28, 2015 at 15:36
Mar 28, 2014 at 20:35 vote accept Czipperz
Mar 28, 2014 at 5:05 history answered Abhilash Divakaran CC BY-SA 3.0
toggle format

AltStyle によって変換されたページ (->オリジナル) /