I raised the issue at https://github.com/flutter/flutter/issues/157684 It’s resolved by setting the Android Studio Path & Android SDK path as follows:
`john@Desktop:~$ flutter config --android-studio-dir="/snap/android-studio/current"
Setting "android-studio-dir" value to "/snap/android-studio/current".
flutter config --android-sdk="/home/john/AndroidSDK"
“flutter doctor --android-licenses” then allows accepting of the licenses though it comes up with a warning:
john@Desktop:~$ flutter doctor --android-licenses
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.