title: How to fix "flutter doctor --android-licenses" java error? Without android studio
body: <p>When I try to accept android licenses using command <code>flutter  doctor --android-licenses</code> a java error is thrown.</p>
  <p>Here is java error:</p>
  <pre><code>Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
          at com.android.repository.api.SchemaModule$SchemaModuleVersion.&lt;init&gt;(SchemaModule.java:156)
          at com.android.repository.api.SchemaModule.&lt;init&gt;(SchemaModule.java:75)
          at com.android.sdklib.repository.AndroidSdkHandler.&lt;clinit&gt;(AndroidSdkHandler.java:81)
          at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
          at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
  Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
          at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
          ... 5 more
  </code></pre>
  <p>Here is my output for <code>flutter doctor -v</code>:</p>
  <p><a href="https://i.stack.imgur.com/QuCsJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QuCsJ.png" alt="flutter doctor -v output" /></a></p>
  <p>How can I solve above java error?</p>
  <p>Note: I want to solve this problem without using Android Studio.</p>