title: Cannot resolve Manifest.permission.ACCESS_FINE_LOCATION
body: <p>When adding permissions to my manifest file, the below xml works.</p>
  
  <pre><code> &lt;permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  </code></pre>
  
  <p>However, this xml doesn't work.</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
  </code></pre>
  
  <p>Which one am I supposed to be using? If it's the first one, why wouldn't it work? How can I fix it?</p>
  
  <p>Also, I am getting an Android 6.0 runtime permissions related exception:</p>
  
  <pre><code>java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
  </code></pre>
  
  <p>When I try to add the permission to a String array in order to check the permission, Android Studio tells me it can't resolve <code>Manifest.permission</code> in the  below  code:</p>
  
  <pre><code>new String[]{Manifest.permission.ACCESS_FINE_LOCATION}
  </code></pre>
  
  <p>Why would it be doing this? How can I fix it?</p>