I tried to run sudo ionic cordova build android
on my mac and keep getting.
What went wrong: Could not determine java version from '15.0.1'.
as an error.
I've set my Path and environment variables as
export JAVA_HOME=/usr/libexec/java_home -v 1.8
export PATH=$JAVA_HOME/bin:$PATH.