How to make Flutter recognize alternate Java location for Android build?
I have a situation (on Mac) where a Flutter project refuses to build for Android apparently because it is trying to use Android Studio Lady Bug bundled version of Java (which is version 21). It says I should either upgrade the Java Android Plugin to be compatible with Java 21, or use a lower version of Java. I don’t want to change the plugin version because I can pretty much guarantee that will lead to much more “fun.” So I would like to use a separate JDK.