ActivityCompat.requestPermissions for targetSdkVersion 30 is not working
问题 I have following permissions: private static final String[] LOCATION_PERMISSIONS = { Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_BACKGROUND_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, }; I try to request permissions in my code with following line (activity is my current activity ref): ActivityCompat.requestPermissions(activity, LOCATION_PERMISSIONS, 1); Everything works fine if I have targetSdkVersion 29 or lower in my build.gradle file. Permissions dialog