You misspelled permission
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Answer from atraudes on Stack OverflowYou misspelled permission
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
I was having the same problem and could not figure out what I was doing wrong. Turns out, the auto-complete for Android Studio was changing the text to either all caps or all lower case (depending on whether I typed in upper case or lower cast words before the auto-complete). The OS was not registering the name due to this issue and I would get the error regarding a missing permission. As stated above, ensure your permissions are labeled correctly:
Correct:
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Incorrect:
<uses-permission android:name="ANDROID.PERMISSION.ACCESS_FINE_LOCATION" />
Incorrect:
<uses-permission android:name="android.permission.access_fine_location" />
Though this may seem trivial, its easy to overlook.
If there is some setting to make permissions non-case-sensitive, please add a comment with the instructions. Thank you!
How can i get ACCESS_FINE_LOCATION permission
Android “gps requires ACCESS_FINE_LOCATION” error
WIFI Direct related API requires ACCESS_FINE_LOCATION, which is confusing! - Google Play Developer Community
Location permission disappeared and no idea why
Videos
Developing small app which uses also location, everything worked fine, but out of nowhere the following permissions
Manifest.permission.ACCESS_COARSE_LOCATION Manifest.permission.ACCESS_FINE_LOCATION
basically disappeared from app's settings. I can see in the logs that they are not granted but the dialog never really gets invoked and in app's settings outside of the app the location permissions basically disappeared.
I really have no idea why is that happening and i am really desperate at this point. I tried to revert some changes, but basically there is literally no reason in my eyes, why it would be happening. Also tried reinstalling android studio/completely resetted rest of the setup, but still with no result.
Other permissions are normally there nearby devices/camera. Does anybody have an idea, where the problem could lie?