How to resolve this "Cannot enable MyLocation layer as location permissions are not granted"?

android.permission.ACCESS_FINE_LOCATION is considered a dangerous permission. Have you used the permission package to request the permission? https://pub.dartlang.org/packages/permission


May be your API key is not setup properly and granted location service access.

Check and enable these services

enter image description here


If on an emulator delete the following in your AndroidManifest file:

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

and keep:

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

This worked for me. I also closed out and rebuilt the entire app in the emulator.