This content originally appeared on DEV Community and was authored by sugiarto
Today, I have a requirement to override the Java version on the Flutter project.
I used sdkman for switching between multiple Java versions, and in this case I used java 17.0.12. For the Flutter version, I used fvm and used flutter 3.24.0 on this project.
Here is the command to set java version:
fvm flutter config --jdkdir=/Users/sugiarto/.sdkman/candidates/java/current
Where jdkdir
should point to your absolute path of the Java directory.
This content originally appeared on DEV Community and was authored by sugiarto
sugiarto | Sciencx (2024-11-02T01:05:09+00:00) Override java version on flutter. Retrieved from https://www.scien.cx/2024/11/02/override-java-version-on-flutter/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.