Problem with AndroidStudio permissions

0

I try to get my application to request and verify the permissions.

int permissionCheck = ContextCompat.checkSelfPermission (this,                 Manifest.permission.ACCESS_FINE_LOCATION);

The problem is that Android studio gives me an error in the word "permission"

Does anyone know any solution?

    
asked by Ikki 08.06.2018 в 00:14
source

1 answer

0

The piece of code is correct, if you can add more information about the context in which you are calling or something would be helpful.

    
answered by 08.06.2018 в 01:08