My flutter sdk version is 2.2.1 and dart sdk version is 2.13 . Flutter doctor shows everything is fine. Problem occurred while building release apk for the first time. After that running in debug mode shows error also! here is the pic
Asked
Active
Viewed 73 times
0

Himel
- 163
- 2
- 12
-
try replacing -> with => in you FlutterLocation file. Also remove '{' after lamda expression – Taha Asif Jun 07 '21 at 06:30
1 Answers
0
please change your java SDK 7 to Java 8 to support lambda expressions.

Tataji
- 1
- 2
-
-
check this link: https://stackoverflow.com/questions/36638657/run-android-studio-with-jre-1-8-or-later-version – Tataji Jun 07 '21 at 08:46