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