title: React Native Project won't build on expo or on avd
body: <p>I just got a react native project and I am trying to run it. When I run:
  <code>react-native run-android</code>
  , this is my output.</p>
  
  <pre><code>Starting JS server...
  Building and installing the app on the device (cd android &amp;&amp; gradlew.bat installDebug)...
  
  &gt; Configure project :app
  WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
  It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
  Checking the license for package Android SDK Platform 27 in C:\Users\oriont\AppData\Local\Android\Sdk\licenses
  Warning: License for package Android SDK Platform 27 not accepted.
  
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring project ':app'.
  &gt; Failed to install the following Android SDK packages as some licences have not been accepted.
       platforms;android-27 Android SDK Platform 27
    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\oriont\AppData\Local\Android\Sdk
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 1s
  Could not install the app on the device, read the error above for details.
  Make sure you have an Android emulator running or a device connected and have
  set up your Android development environment:
  https://facebook.github.io/react-native/docs/getting-started.html
  
  Command failed: gradlew.bat installDebug
  
  Error: Command failed: gradlew.bat installDebug
      at checkExecSyncError (child_process.js:637:11)
      at Object.execFileSync (child_process.js:655:13)
      at runOnAllDevices (C:\Users\oriont\dev\proj\node_modules\react-native\local-cli\runAndroid\runAndroid.js:299:19)
      at buildAndRun (C:\Users\oriont\dev\proj\node_modules\react-native\local-cli\runAndroid\runAndroid.js:135:12)
      at isPackagerRunning.then.result (C:\Users\oriont\dev\proj\node_modules\react-native\local-cli\runAndroid\runAndroid.js:65:12)
      at processTicksAndRejections (internal/process/next_tick.js:81:5)
  </code></pre>
  
  <p>I have followed all of the directions on the facebook getting started page, but this error keeps popping up. When I run it, I have my AVD running, which is on Android 9. From there, I tried to accept the licenses.</p>
  
  <pre><code>C:\Users\oriont\AppData\Local\Android\Sdk\tools\bin&gt;sdkmanager.bat --licenses
  Exception in thread "main" 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:582)
          at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
          ... 5 more
  </code></pre>
  
  <p>And I don't know what to do from here. I tried expo and it was another rabbit hole... Someone please help! Thanks!</p>