title: Runtime permission check API 23+: Cannot resolve symbol 'Manifest.permission.READ_EXTERNAL_STORAGE'
body: <p>I'm trying to check a permission in API 23 and above like this:</p>
  
  <pre><code>int result = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);
  </code></pre>
  
  <p>But it can't find <code>Manifest.permission.READ_EXTERNAL_STORAGE</code>.</p>
  
  <p>This is because in my manifest the permission is set up like this:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
  </code></pre>
  
  <p>So I changed it to this and now it works:</p>
  
  <pre><code>&lt;permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
  </code></pre>
  
  <p>Can you not use <code>uses-permission</code> to check permissions at runtime? Do I have to change all my <code>uses-permission</code> to <code>permission</code> in my app to make it work checking permissions at runtime in API 23+?</p>
  
  <p>EDIT: the error I am getting in Android Studio is:</p>
  
  <blockquote>
    <p>Cannot resolve symbol 'READ_EXTERNAL_STORAGE'</p>
  </blockquote>