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?
import android.Manifest;
since sometimes it uses class manifest
This permission is in android package
android.Manifest.permission.ACCESS_FINE_LOCATION
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With