Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Resolve Symbol ACCESS_FINE_LOCATION

I have this code

if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {

In manifest, I have included this permission

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

But I got error cannot resolve symbol 'ACCESS_FINE_LOCATION'

How to solve this problem?

like image 424
CherryBelle Avatar asked Mar 27 '16 09:03

CherryBelle


2 Answers

import android.Manifest; since sometimes it uses class manifest

like image 109
Sanket Parchande Avatar answered Nov 13 '22 11:11

Sanket Parchande


This permission is in android package

android.Manifest.permission.ACCESS_FINE_LOCATION
like image 9
Mykhailo Yuzheka Avatar answered Nov 13 '22 10:11

Mykhailo Yuzheka