Flutter App no longer building after upgrading to Android Studio Electric Eel (Java errors)

I decided to upgrade to Android Studio Electric Eel today in order to get WiFi pairing and debugging with my android phone – happily WiFi pairing now works, but unhappily my App refused to build anymore with Java version errors.

If when you run flutter doctor and get an error like this:

 

 

 

 

 

 

Take a look at this thread, linking from jbr to jre directories fixed it for me (windows 10), although I had to delete the empty C:\Program Files\Android\Android Studio\jre folder first!

From a CMD session with Admin privileges run:

mklink /D "jre" "jbr"