title: ContextCompat.checkSelfPermission is undefined
body: <p>I have seen this question asked multiple time on SO and went thru their answers thoroughly however, I am still struggling to resolve this problem.</p>
  
  <p>As per multiple answers, I have ensured that maxSdkVersion in android manifest file is 23(I kept minSdkVersion to 15). I also put targetSdk in project.properties to 23. I am running project on android6 and have android-support-v4.jar included from androidsdk/android-sdk-macosx/extras/android/support/v7/appcompat/libs/android-support-v4.jar. </p>
  
  <p>In android SDK manager, under extras, I have android support repository version 36(which I believe is the latest) and I am using android-sdk-tools 22.6.2</p>
  
  <p>Can anyone please guide why this error still persist? How to remove it?</p>