title: npm run android does not launch the Android app
body: <h2>Issue</h2>
  
  <p>I was able to clear my last <a href="https://stackoverflow.com/questions/54231555/unable-to-resolve-dependency-for-could-not-resolve-project-react-native/54244941#54244941">issue</a> after ignoring the errors and following the rest of the steps in the <a href="https://wix.github.io/react-native-navigation/#/docs/Installing" rel="nofollow noreferrer">React Native Navigation installation</a>. Those warnings went away.</p>
  
  <p>However, when I run <code>npm run android</code>, it builds successfully but does not launch the app</p>
  
  <pre><code>Configure project :app
  ...
  Configure project :react-native-navigation
  ...
  Task :app:installDebug
  ...
  BUILD SUCCESSFUL in 6s
  </code></pre>
  
  <p>The android emulator goes to its home screen and the app does not launch.</p>
  
  <h2>What I've Tried</h2>
  
  <ul>
  <li>I've tried running/building/clean&amp;rebuilding from android studio.  This led to <code>Could not connect to development server</code> when I refreshed from the white blank screen.</li>
  <li><p>I've followed the steps in <a href="https://medium.com/@adityasingh_32512/solved-unable-to-load-script-from-assets-index-android-bundle-bdc5e3a3d5ff" rel="nofollow noreferrer">here</a> by creating assets folder and running this code</p>
  
  <pre><code>react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
  </code></pre></li>
  </ul>
  
  <hr>
  
  <h1>build.gradle</h1>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      ext {
          buildToolsVersion = "28.0.3"
          minSdkVersion = 19
          compileSdkVersion = 28
          targetSdkVersion = 28
          supportLibVersion = "28.0.0"
      }
      repositories {
          google()
          mavenLocal()
          mavenCentral()
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.3.0'
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          google()
          mavenCentral()
          mavenLocal()
          jcenter()
          maven {
              // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
              url "$rootDir/../node_modules/react-native/android"
          }
          maven { url 'https://jitpack.io' }
      }
  }
  </code></pre>
  
  <h1>app/build.gradle</h1>
  
  <pre><code>apply plugin: "com.android.application"
  
  import com.android.build.OutputFile
  
  project.ext.react = [
      entryFile: "index.js"
  ]
  
  apply from: "../../node_modules/react-native/react.gradle"
  
  /**
   * Set this to true to create two separate APKs instead of one:
   *   - An APK that only works on ARM devices
   *   - An APK that only works on x86 devices
   * The advantage is the size of the APK is reduced by about 4MB.
   * Upload all the APKs to the Play Store and people will download
   * the correct one based on the CPU architecture of their device.
   */
  def enableSeparateBuildPerCPUArchitecture = false
  
  /**
   * Run Proguard to shrink the Java bytecode in release builds.
   */
  def enableProguardInReleaseBuilds = false
  
  android {
      compileSdkVersion rootProject.ext.compileSdkVersion
  
      defaultConfig {
          applicationId "com.appname"
          minSdkVersion rootProject.ext.minSdkVersion
          targetSdkVersion rootProject.ext.targetSdkVersion
          missingDimensionStrategy "RNN.reactNativeVersion", "reactNative57_5"
          versionCode 1
          versionName "1.0"
          ndk {
              abiFilters "armeabi-v7a", "x86"
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      splits {
          abi {
              reset()
              enable enableSeparateBuildPerCPUArchitecture
              universalApk false  // If true, also generate a universal APK
              include "armeabi-v7a", "x86"
          }
      }
      buildTypes {
          release {
              minifyEnabled enableProguardInReleaseBuilds
              proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
          }
      }
      // applicationVariants are e.g. debug, release
      applicationVariants.all { variant -&gt;
          variant.outputs.each { output -&gt;
              // For each separate APK per architecture, set a unique version code as described here:
              // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
              def versionCodes = ["armeabi-v7a":1, "x86":2]
              def abi = output.getFilter(OutputFile.ABI)
              if (abi != null) {  // null for the universal-debug, universal-release variants
                  output.versionCodeOverride =
                          versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
              }
          }
      }
  }
  
  configurations.all {
      resolutionStrategy.eachDependency { DependencyResolveDetails details -&gt;
          def requested = details.requested
          if (requested.group == 'com.android.support' &amp;&amp; requested.name != 'multidex') {
              details.useVersion "${rootProject.ext.supportLibVersion}"
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: "libs", include: ["*.jar"])
      implementation "com.android.support:design:28.0.0"
      implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
      implementation "com.facebook.react:react-native:+"  // From node_modules
      implementation project(':react-native-navigation')
  }
  
  // Run this once to be able to run the application with BUCK
  // puts all compile dependencies into folder libs for BUCK to use
  task copyDownloadableDepsToLibs(type: Copy) {
      from configurations.compile
      into 'libs'
  }
  </code></pre>
  
  <ul>
  <li>react-native: "0.57.8"</li>
  <li>react-native-navigation: "^2.7.0"</li>
  <li>Android 9.0 API 28</li>
  </ul>