Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • have you tried this? Commented Jul 13, 2023 at 21:41
  • Try Android studio -> File -> Project structure. You can set the project sdk under Project tab. Commented Jul 13, 2023 at 21:59
  • Because flutter for some reason takes the JDK from the latest installation of Android Studio. Only when no AS installation is found, it will use $JAVA_HOME. I learned this the hard way today: github.com/flutter/flutter/issues/… Commented Oct 21, 2024 at 13:11