I had an older version of Dart installed in a Flutter dev setup and it seemed that it was being picked up at some point in the init/build process. Removing the old Dart version fixed the errors below.
OSX
java -version
openjdk version "11.0.8" 2020-07-14