google_maps_flutter does not work correctly on Android 11

Issue

I am using the google_maps_flutter package and whenever I click the button to launch the google map I encounter this error:

google maps is not installed or is disabled

But such a thing was not true :(((
This error is happened to me in Android 11.

please help me to solve this.

Solution

To fix this, you will need to add the Google Maps package "com.google.android.apps.maps" as an entry in your AndroidManifest.xml entry:

<manifest package="com.your.package">
  <queries>
    <package android:name="com.google.android.apps.maps" />
  </queries>
  ...
</manifest>

Answered By – Raza Chishti

Answer Checked By – Katrina (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published.