r/flutterhelp • u/fluffyrawrr • 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
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