title: Android Studio: Cannot resolve symbol 'activity'
body: <p>In Android Studio, I get the error "Cannot resolve symbol 'activity'. </p>
  
  <p>I've looked at other questions and tried the following</p>
  
  <ul>
  <li>Invalidate Caches / Restart</li>
  <li>set "insert imports on paste" to all, checked "optimize imports on the fly" and checked "add unambiguous imports on the fly"</li>
  </ul>
  
  <p>None of those worked.</p>
  
  <p>Any help would be appreciated.</p>
  
  <p>Here is my AndroidManifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest
  xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.thesgn.app"
  android:installLocation="auto"&gt;
  
  &lt;!-- versionCode, versionName, minSdkVersion, targetSdkVersion properties are set via Gradle script --&gt;
  
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  
  &lt;uses-permission android:name="android.permission.WAKE_LOCK" /&gt;
  &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
  &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
  &lt;uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /&gt;
  &lt;permission android:protectionLevel="signature" android:name="com.thesgn.app.permission.C2D_MESSAGE" /&gt;
  &lt;uses-permission android:name="com.thesgn.app.permission.C2D_MESSAGE" /&gt;
  
  &lt;application
      android:name=".WebViewAppApplication"
      android:icon="@drawable/ic_launcher"
      android:label="TheSGN"
      android:theme="@style/Theme.WebViewApp.Orange"
      android:hardwareAccelerated="true"
      android:allowBackup="true"&gt;
  
      &lt;meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /&gt;
      &lt;meta-data android:name="com.google.android.gms.analytics.globalConfigResource" android:resource="@xml/analytics_global_tracker" /&gt;
  
      &lt;activity
          android:name=".activity.MainActivity"
          android:label="@string/app_name"
          android:launchMode="standard"
          android:configChanges="keyboard|keyboardHidden|orientation|screenSize"&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="com.google.android.gms.ads.AdActivity"
          android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode|smallestScreenSize" /&gt;
  
      &lt;service android:name="com.parse.PushService" /&gt;
      &lt;receiver android:name="com.parse.ParseBroadcastReceiver"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
              &lt;action android:name="android.intent.action.USER_PRESENT" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;receiver
          android:name="com.parse.ParsePushBroadcastReceiver"
          android:exported="false"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.parse.push.intent.RECEIVE" /&gt;
              &lt;action android:name="com.parse.push.intent.DELETE" /&gt;
              &lt;action android:name="com.parse.push.intent.OPEN" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;receiver
          android:name="com.parse.GcmBroadcastReceiver"
          android:permission="com.google.android.c2dm.permission.SEND"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="com.google.android.c2dm.intent.RECEIVE" /&gt;
              &lt;action android:name="com.google.android.c2dm.intent.REGISTRATION" /&gt;
              &lt;category android:name="com.thesgn.app" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
      &lt;meta-data android:name="com.parse.push.notification_icon" android:resource="@drawable/ic_stat_notify" /&gt;
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>