title: Getting "java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so" error
body: <p>I'm in the process of migrating a React Native project from react-native version 0.58.5 to 0.60.4. </p>
  
  <p>For the Android part I've done all the changes mentioned <a href="https://react-native-community.github.io/upgrade-helper/?from=0.58.5&amp;to=0.60.4" rel="noreferrer">here</a></p>
  
  <p>I let Hermes disabled in my app <code>build.gradle</code> file:</p>
  
  <pre><code>project.ext.react = [
      entryFile: "index.js",
      enableHermes: false,  // clean and rebuild if changing
  ]
  ...
  def jscFlavor = 'org.webkit:android-jsc:+'
  def enableHermes = project.ext.react.get("enableHermes", false);
  ...
  dependencies {
      ...
  
      if (enableHermes) {
        println 'Hermes is enabled'
        def hermesPath = "../../node_modules/hermesvm/android/";
        debugImplementation files(hermesPath + "hermes-debug.aar")
        releaseImplementation files(hermesPath + "hermes-release.aar")
      } else {
        println 'Hermes is disabled'
        implementation jscFlavor
      }
  }
  ...
  </code></pre>
  
  <p>I can see the <code>Hermes is disabled</code> print at build time. And this is exactly what I want.</p>
  
  <p>When launching the Android app with react-native run-android I get the following crash at startup :</p>
  
  <pre><code>FATAL EXCEPTION: create_react_context
  E  Process: com.reactnativetestapp, PID: 21038
  E  java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libhermes.so
  E      at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:738)
  E      at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:591)
  E      at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:529)
  E      at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:484)
  E      at com.facebook.hermes.reactexecutor.HermesExecutor.&lt;clinit&gt;(HermesExecutor.java:20)
  E      at com.facebook.hermes.reactexecutor.HermesExecutorFactory.create(HermesExecutorFactory.java:27)
  E      at com.facebook.react.ReactInstanceManager$5.run(ReactInstanceManager.java:949)
  E      at java.lang.Thread.run(Thread.java:764)
  </code></pre>
  
  <p>After some research I could see this crash occurs for people wanting to enable Hermes and that has a wrong gradle configuration : <a href="https://github.com/facebook/react-native/issues/25601" rel="noreferrer">[0.60.3] App crash on startup when enabling Hermes (enableHermes: true)</a></p>
  
  <p>Why am I getting this crash while Hermes is disabled?</p>
  
  <p>Note that when setting <code>enableHermes</code> to <code>true</code> no crash occurs.</p>