Namespace not specified 🤖 Android

Namespace not specified. Specify a namespace in the module's build file (AGP 8)

AGP 8 requires android { namespace = "…" } in each module’s build file; the package attribute in AndroidManifest.xml is no longer used.

Seen on: Android

Meaning

Upgrading to AGP 8 or using old third-party modules (React Native/Flutter plugins) without a namespace breaks the build. Library authors must add it; you can patch locally.

Common causes

  • Project upgraded to AGP 8 without adding namespace
  • Old library/plugin module lacking namespace
  • package attribute still in the manifest

⚡ Quick fix

  1. Add namespace to every module’s build.gradle
  2. Update the plugin/library to a version that declares it
  3. Remove package= from AndroidManifest.xml

Detailed fix by platform

Gradle

  1. kotlin
    android {
      namespace = "com.example.app"
    }

How to diagnose

  1. Module — Which module is named?
  2. Library — Newer version available?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.