title: EAS Build (Android) .apk Crashes, Expo Build .apk Runs Correctly
body: <p>I'm updating a React Native app to EAS Build, after using expo build for several years. The app works via the development server.</p>
  <p>After running eas build, the .apk file builds successfully, but immediately crashes when opened on a device.</p>
  <p>My error log is:</p>
  <pre><code>TypeError: undefined is not an object (evaluating 't.indexOf')
  Running &quot;main&quot; with {&quot;rootTag&quot;:1}
  Invariant Violation: &quot;main&quot; has not been registered. This can happen if:
  * Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  * A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.
  </code></pre>
  <p>Has anyone run into this error?</p>