Building Flutter App for Android throws an error: error: invalid source release: 17 #2333
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce1.Already have a Flutter app (using Flutter 3.7.11) that was building correctly before Expected resultsI expect to build the app correctly without issues. Actual resultsThe build fails with the following error:
And I can't add Java 18 to the environment variables in Codemagic since it's not available as mentioned here Build id (optional)No response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi sorry for the late reply. We will pre-install latest Java LTS on our machines, hopefully it will be available next week. Thank you for bringing this to our attention and sorry again for the delay. |
Beta Was this translation helpful? Give feedback.
-
Hi @samnbd please note that Java 17 is available on Linux instances. You can specify it in
or in the Workflow Editor under the Environment variables section by defining an env var |
Beta Was this translation helpful? Give feedback.
-
Codemagic machines now have Java 21 (LTS) installed. Check out the machines spec in the docs. |
Beta Was this translation helpful? Give feedback.
Codemagic machines now have Java 21 (LTS) installed. Check out the machines spec in the docs.