Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To resolve the wrong key error in Flutter on Android devices, follow these steps:

  1. Navigate to the AndroidManifest.xml file in your Flutter project.
  2. Locate the meta-data tag with name "com.google.android.geo.API_KEY".
  3. Verify that the key value within the meta-data tag matches the key value obtained from the Google Cloud Console.
  4. If the key values do not match, generate a new API key in the Google Cloud Console and update the value accordingly in the AndroidManifest file.
  5. After correcting the API key value, rebuild your app and test it on an Android device.