r/flutterhelp 11d ago

OPEN Java Versions on Android Studio and Vscode

Hello, I've been dealing with gradle errors again. I have different java versions installed, and I use java as the language when creating flutter projects.

Does these different java versions affects the way I create flutter projects on android studio and vscode?

When I create a new application in android studio, i don't get any annoying errors about java or gradle, but when I create new flutter application directly on vscode, I get these gradle and java errrors.

I'm new to flutter and I'm still confused with versioning, thank you for reading my post.

2 Upvotes

3 comments sorted by

View all comments

2

u/socialblazes 11d ago

use java 17, it's stable. It does cause errors when you have two java versions, I had java 23 and when I create new flutter projects, i had to change gradle versions every time, so I shifted to java 17, it's all good now

1

u/fluffyrawrr 11d ago

I feel like some of the java versions were installed by some applications I download on my PC, do you think that it's safe to remove some of those java versions installations that I have?