To repro, specify different values for namespace and applicationId in the build.gradle file, omit the package name from the source AndroidManifest.xml, and include an activity name shorthand in the AndroidManifest.xml source file (e.g., android:name=".MainActivity").
In this case, AGP will incorrectly prepend the applicationId instead of the namespace to .MainActivity.
Description
To repro, specify different values for
namespace
andapplicationId
in thebuild.gradle
file, omit the package name from the source AndroidManifest.xml, and include an activity name shorthand in the AndroidManifest.xml source file (e.g.,android:name=".MainActivity"
).In this case, AGP will incorrectly prepend the
applicationId
instead of thenamespace
to.MainActivity
.Reproduced with AGP version 7.2.0-alpha06