Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156 flutter android licence code example
Example: 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'.