title: "Could not identify launch activity: Default Activity not found" - Android Studio - no answers working
body: <p>Whenever trying to run the app, getting the error:</p>
  
  <p>"Could not identify launch activity: Default Activity not found".</p>
  
  <p>I have seen a few other threads on the same issue, but the below solutions have not worked for me:</p>
  
  <ol>
  <li>Invalidating gradle cache and re-running</li>
  <li>Manually overriding in the edit configuration tab to select the default activity (it then says "The activity 'MainActivity' is not declared in AndroidManifest.xml" even though it is!)</li>
  <li>Re-syncing the gradle files</li>
  <li>Literally shuffling around the order of the activities in my manifest</li>
  <li>Using the long name for my activities, but doesn't make any difference</li>
  </ol>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.mywebname"&gt;
  
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:roundIcon="@mipmap/ic_launcher_round"
          android:supportsRtl="true"
          android:theme="@style/AppTheme"&gt;
  
          &lt;activity
              android:name=".MainActivity"
              android:screenOrientation="portrait"
              android:label="@string/app_name"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;activity
              android:name=".ListenScreen"
              android:parentActivityName=".MainActivity"
              android:screenOrientation="portrait"&gt;
          &lt;/activity&gt;
  
   &lt;/application&gt;
  
  &lt;/manifest&gt;
  ```
  
  As you can see, I have clearly declared the activities (my app only has 2 so far), and I've put the intents around the ".MainActivity".
  </code></pre>