79387678

Date: 2025-01-25 23:05:27
Score: 1.5
Natty:
Report link

Hardik Mehta was correct. Searching "namespace not specified" gives websites which show the solution used.

Placing the following code into android/build.gradle will solve the issue

subprojects {
afterEvaluate { project ->
    if (project.hasProperty('android')) {
        project.android {
            if (namespace == null) {
                namespace project.group
            }
        }
    }
}

}

It must be placed in the correct position in build.gradle. In my case I put it right after

subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"

}

The websites are Android getting error: Namespace not specified

https://medium.com/@derricktab44/resolving-the-namespace-not-specified-error-in-flutter-builds-1ce818214b54

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Peter Thompson