title: ActivityCompat error (Cannot resolve symbol)
body: <p>In my react-native application, I need to get location permission from the user, so I added this in one of the Activity classes...</p>
  
  <pre><code>public void onCreate() {
      ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);
  }
  </code></pre>
  
  <p>However, I get a <code>cannot resolve symbol error</code> for both <code>ActivityCompat</code> and <code>Manifest</code>. </p>
  
  <p>After doing some research I found out you need to add the following to the <code>gradle.build</code> file <code>compile 'com.android.support:support-v4:23.0.0'</code></p>
  
  <p>So I did that...</p>
  
  <pre><code>dependencies {
      compile project(':react-native-maps')
      compile fileTree(dir: "libs", include: ["*.jar"])
      compile "com.android.support:appcompat-v7:23.0.1"
      compile "com.facebook.react:react-native:+"  // From node_modules
      compile 'com.android.support:support-v4:23.0.0'
  }
  </code></pre>
  
  <p>But I still get the same errors. I tried <code>clean</code> still nothing. I also tried restarting Android Studio <code>File &gt; Invalidate Caches/Restart</code>, still get the errors.</p>
  
  <p>How do I fix these errors?</p>