Flutter Doctor --android-licenses : Exception in thread "main" java.lang.NoClassDefFoundError
Installing Android SDK Command-line tools from Android SDK Manager did the job for me.
- Open Android Studio
- Tools > SDK Manager
- From the left choose, Appearance & Behavior > System Settings > Android SDK
- Select SDK Tools from the top menu
- Check Android SDK Command-line tools and click 'apply'.