title: React native: Android project not found. Maybe run react-native android first?
body: <p>I had an issue in my React-Native project which was working fine earlier but suddenly it stopped working. Whenever I used the command:</p>
  
  <pre><code>react-native run-android
  </code></pre>
  
  <p>I was getting an <strong>error</strong>:</p>
  
  <blockquote>
    <p>Android project not found. Maybe run react-native android first?</p>
  </blockquote>
  
  <p>I <strong>tried</strong> running:</p>
  
  <pre><code>react-native android
  </code></pre>
  
  <p>But it said: </p>
  
  <blockquote>
    <p><code>Unrecognized command 'android' Run react-native --help to see list of
    all available commands</code></p>
  </blockquote>
  
  <p>After trying:</p>
  
  <pre><code>D:\ProjectRoot\ReactNativeProjects\AwesomeProject&gt;react-native eject
  </code></pre>
  
  <p>The error returned was:</p>
  
  <blockquote>
    <p>Scanning folders for symlinks in
    D:\ProjectRoot\ReactNativeProjects\AwesomeProject\node_modules (48ms)
    App <code>name</code> must be defined in the <code>app.json</code> config file to define the
    project name. It must not contain any spaces or dashes.</p>
  </blockquote>
  
  <p>This is the app.json file:</p>
  
  <pre><code>{
    "expo": {
      "name": "AwesomeProject",
      "description": "A very interesting project.",
      "slug": "AwesomeProject",
      "privacy": "public",
      "sdkVersion": "30.0.0",
      "platforms": ["ios", "android"],
      "ios": {
        "supportsTablet": true
      },
      "android": {
        "package": "com.project.first"
      },
      "version": "1.0.0",
      "orientation": "portrait",
      "icon": "./assets/images/icon.png",
      "splash": {
        "image": "./assets/images/splash.png",
        "resizeMode": "contain",
        "backgroundColor": "#ffffff"
      },
      "updates": {
        "fallbackToCacheTimeout": 0
      },
      "assetBundlePatterns": [
        "**/*"
      ]
    }
  }
  </code></pre>