Open derekpitts28 opened 1 year ago
Can confirm, builds failing because namespace is not set in this plugin.
When you try and set it manually, it generates the error in the link above.
Was not able to solve.
Any idea when we can expect a bump to AGP 8.0+?
In the mean time you can add this to the end of your build.gradle it will fix the problem for all the packages
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
afterEvaluate { project ->
if (project.hasProperty('android')) {
project.android {
if (namespace == null) {
namespace project.group
}
}
}
}
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
See solution here for fix: https://issuetracker.google.com/issues/277166577
From the issue: