Call requires API level 23 (current min is 14): android.app.Activity#requestPermissions,checkSelfPermission [duplicate]
This question already has an answer here: The method checkSelfPermission(Context, String) is undefined for the type ContextCompat 3 answers I am trying add run time permissions android(6.0.1) API 23,If I use SDK version( min and target version both 23 ) it woks fine, like below, <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="23" /> If I change android:minSdkVersion(less then 23) For example: I am getting error below: Call requires API level 23 (current min is 14): android.app.Activity#requestPermissions,checkSelfPermission For following 2 methods, 1)requestPermissions