title: "java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema" when accepting SDK licenses
body: <p>Alright so I'm trying to build my React-Native app using Android Studio. I first ran into this error when building:</p>
  <pre><code>Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;29.0.2 Android SDK Build-Tools 29.0.2
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
  
  Using Android SDK: C:\Users\jaspe\AppData\Local\Android\Sdk
  </code></pre>
  <p>When figuring that out I came across <a href="https://stackoverflow.com/questions/54273412/failed-to-install-the-following-android-sdk-packages-as-some-licences-have-not">this answer</a> which told me to accept the licenses. However in trying to do so I got the following error:</p>
  <pre><code>C:\Users\jaspe\AppData\Local\Android\Sdk\tools\bin&gt;sdkmanager --licenses
  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:581)
          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>To resolve which I found <a href="https://stackoverflow.com/questions/46402772/failed-to-install-android-sdk-java-lang-noclassdeffounderror-javax-xml-bind-a">this post</a>. I don't use brew, but I tried the second answer. It didn't work, sadly enough. Then I found out I didn't have a JDK installed, so I did that. But with the newest JDK installed I still get an exception:</p>
  <pre><code>C:\Users\jaspe\AppData\Local\Android\Sdk\tools\bin&gt;sdkmanager.bat -licenses
  Error occurred during initialization of boot layer
  java.lang.module.FindException: Module java.xml.bind not found
  </code></pre>
  <p>And now I'm not sure what to do anymore. I found <a href="https://stackoverflow.com/questions/58495573/module-java-xml-bind-not-found">an answer</a> explaining I needed to edit my project settings, but I think this doesn't apply to my project, and honestly I'm in a bit over my head. Does someone have experiences with these errors, and can help me fix them? I've spent the whole morning trying to figure this out, I'd expected building a runnable .APK as a demo would be easier...</p>