title: Cannot resolve method checkSelfPermission
body: <p>I'm trying to make my app ready for Android 6 and now I'm stuck to the point where you need to request and check permissions.</p>
  
  <p>I tried the following from the docs:</p>
  
  <p><code>int permissionCheck = ContextCompat.checkSelfPermission(thisActivity,
          Manifest.permission.WRITE_CALENDAR);</code></p>
  
  <p>The problem is that Android Studio says <code>Cannot resolve method 'checkSelfPermission'</code>.</p>
  
  <p>I already included the appcompat and support lib. <code>ContextCompat</code> is known to AS but the method itself isn't known. I don't know what am I doing wrong - in another project I can write this method and it gets recognized.</p>
  
  <p>TargetAPI is 23.</p>
  
  <p>Does anyone know a solution?</p>