79681485

Date: 2025-06-27 06:33:37
Score: 0.5
Natty:
Report link

If you're using Expo, you should NOT manually edit AndroidManifest.xml in the android/ folder.

Why? Because the android/ folder is generated automatically by Expo, and any manual changes will be overwritten the next time you run npx expo prebuild

✅ Correct Way to Add Google Maps API Key in Expo

Instead, you should update your app.json or app.config.js like this

{
  "expo": {
    "android": {
      "config": {
        "googleMaps": {
          "apiKey": "YOUR_GOOGLE_MAPS_API_KEY"
        }
      }
    }
  }
}

Then run. (Don't ignore this step)

npx expo prebuild

after that

npx expo run:android

This will regenerate the native project files (including AndroidManifest.xml) with the correct meta-data tag.

🔴 Do Not Manually Edit android/AndroidManifest.xml

Because

Reasons:
  • Blacklisted phrase (0.5): Why?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Chinthaka Dilan F