DEV Community

sugiarto
sugiarto

Posted on

2

Override java version on flutter

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
Enter fullscreen mode Exit fullscreen mode

Where jdkdir should point to your absolute path of the Java directory.

Top comments (0)

Sentry growth stunted Image

If you are wasting time trying to track down the cause of a crash, it’s time for a better solution. Get your crash rates to zero (or close to zero as possible) with less time and effort.

Try Sentry for more visibility into crashes, better workflow tools, and customizable alerts and reporting.

Switch Tools

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay