Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema android license code example
Example 1: flutter Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at
1- Open Tools > SDK Manager
2-From the left choose, Appearance & Behavior > System Settings > Android SDK
3-Select SDK Tools from the top menu
4- Check Android SDK Command-line tools and click 'apply'.
Example 2: flutter doctor --android-licenses Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
Installing Android SDK Command-line tools from Android SDK Manager did the job for me.
1. Open Tools > SDK Manager
2. From the left choose, Appearance & Behavior > System Settings > Android SDK
3. Select SDK Tools from the top menu
4. Check Android SDK Command-line tools and click 'apply'.